[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: birthday program.jpg (98 KB, 988x897)
98 KB
98 KB JPG
I've been learning Python for a week and this is the most complicated program I can make by myself...
>>
>>107496785
Looks complicated enough to me
>>
>>107496785
congratulations op

keep going
>>
>>107496785
Learning python or learning programming?
Looks like programming to me with that noob crap.
>>
>>107496785
If you're completely new to programming that looks great for a week of learning. Keep it up anon!
>>
>>107496785
Congrats jack. Next thing you know, you'll start wearing thigh high socks uwu owo
>>
>>107496785
You'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.
>>
>>107497047
thank you, anon
will keep this in mind
>>
>>107496785
usecase?
>>
>>107497204
Wishing you a happy birthday when you turn 35.
>>
>>107497176
np
also 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
>>
>>107496785
here'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 day
i only used it a few times since i basically never stream but it was a fun project



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.