the control flows much faster and less memory consumer than dictionary focus on what works don't focus on the beauty
2024-11-14 20:19:35
4
Naxee ༽ :
I learn this from chatGPT
2024-11-13 18:01:14
1
flatcrab :
Match case?
2024-11-29 20:30:31
0
Eoin Dudley :
if you need something like the first one (different logic for each possibility) you can use case match
2024-11-23 03:43:57
1
[object Object] :
So you’re saying you can use a map to map things??? No way!
2024-11-25 19:30:25
0
johnsouls2 :
what if you mapped them with say a... MAP?
2024-11-24 03:09:32
1
Teemu Kukkola :
Good luck with switch statement in C++ with strings as cases
2024-12-31 09:40:50
0
boban :
still works tho
2024-12-01 22:56:57
1
Michael Barrowman :
You should have done this with a list and a length check. Also, the conversion from number to string should be one function and the printing of that result as a second function
2025-01-03 19:17:00
0
Stevenson :
Keep these coming
2024-11-12 03:23:51
0
Betterosso :
What would toy use in c++?
2024-12-27 01:20:22
0
Skye :
Is it bad some code just like that is on my screen infront of me right now...
2024-12-06 21:40:14
0
JayFX :
Nice!
2024-11-12 00:37:01
1
end3r · lovers :
"python doesn't have switch statements" yeah? then explain this.
2024-12-22 22:00:03
0
Vhanasoge :
What does the get() do and the def
2024-11-30 08:17:07
0
YP SO FRESH :
This is my code
2024-11-25 21:13:53
0
Exactly. :
guys using lists would be better we can use indexing and it doesn't consume so much ram
2024-11-27 22:18:22
0
AAAAAGHSH :
you could also use an array, or at a minimum put the dictionary outside if a function, cos it's completely unnecessary and slower
2024-11-25 09:26:06
0
viraloft :
Love this, very informative. Just followed for more 👌
2026-02-15 10:41:01
0
ඞ :
does python not have enumeration?
2024-11-15 18:28:47
0
Dr. Rivas :
Since when Sunday is no longer the first day of a week? #1
2024-11-18 00:33:45
2
chrismottram590 :
First version is more performant.
2024-12-08 21:53:29
0
Daniel :
print_day_of_the_week doesn’t actually print anything, might want to call it get_day_of_the_week
2024-11-14 20:29:58
1
Neil :
I'm a never nester. this would never happen on my watch 😉
2025-01-22 17:13:25
0
To see more videos from user @tech_with_tim, please go to the Tikwm
homepage.