I've been learning Python for a week and this is the most complicated program I can make by myself...
>>107496785Looks complicated enough to me
>>107496785congratulations opkeep going
>>107496785Learning python or learning programming?Looks like programming to me with that noob crap.
>>107496785If you're completely new to programming that looks great for a week of learning. Keep it up anon!
>>107496785Congrats jack. Next thing you know, you'll start wearing thigh high socks uwu owo
>>107496785You're in your 30s bro just give up bro
line 17 and 21 happen in both conditions, you can just add one `print()` before at line 15 and it will do the same functionality but with less repeated lines of code
To write more complicated programs, learn to define and use functions.For even more complicated programs you also want to learn how to define and use classes.
>>107497047thank you, anonwill keep this in mind
>>107496785usecase?
>>107497204Wishing you a happy birthday when you turn 35.
>>107497176npalso for String comparisons at line 29 or 32, for comparing case insensitive strings, you can convert both strings to lowercase, therefore you don't have to have multiple conditions (eg, user types in "yEs")https://docs.python.org/3/library/stdtypes.html#str.lower```if response.lower == "yes"```There's also `casefold` for locale-specific characters.
time to get into wood working
>>107496785here's what i did once i got to about that level>saw that accesing VLC data is really easy to access via the local web server if you enable it>decide to make a program that detects what track i am playing and provides a string based on it's metadata (title ~ album) + the current cover image if it exist so i could use it in OBS>made the first version in a schizophrenic coding session overnight with some truly terrible code (shit like parsing the vlc window name to get the name for the song and album)>make a way better version that actually uses the data properly provided by vlc the next dayi only used it a few times since i basically never stream but it was a fun project