r/PythonLearning • • Oct 02 '26

TRY 101- Starting my python journey again

Post image

Hope this time i become consistent and do things after loops and then further and further😭

120 Upvotes

16 comments sorted by

5

u/TommyWrightThaThird Oct 02 '26

this is super picky but i would recommend spacing out your math, ie “… num1 % 2 == 0…”

it doesn’t change anything but is easier to parse imo. not trying to be captious or anything, do what works for you!

keep going with your journey bro. i had a lot of phases where i tried to learn code but never stuck with it, then i took a course in college that focused on python and was obviously forced to learn it at that point. i’m super happy i did though, python is a great skill to have even if you’re just making simple programs for your own use. you definitely won’t regret it!

2

u/letszzgoo Oct 02 '26

Thanks for comment dude , i will try to write the code in clean spacing so easy to read..and yeahh this time i will complete python and further things in it surely!

1

u/WiseOwl010101 Oct 02 '26

How? I wanna start that journey to but I dont know How nor where to start.

1

u/letszzgoo Oct 03 '26

My colg placemnts are strting next year/final year...so have to do it . This is my reason. Get a reason to strt you can make it!...🫡

1

u/Whiskey_lullaby0 Oct 03 '26

I can relate to the "again" 😂 it's literally my 3rd time

1

u/HardwareIsHardWhere Oct 07 '26

Welcome back! The restart is the hardest part and you already did it! What got you back into it, any particular project in mind, or are you just relearning the fundamentals?

In future, once you've learned exception handling, you can use a little package called askr to sanitize your inputs instead of rewriting the same try/except loop every time:

from askr import ask_int

# Simple prompt, loops until the user types a valid whole number
age = ask_int("How old are you? ")

# With bounds: only accepts a value within the range
rating = ask_int("Rate 1-10: ", min=1, max=10)

# With a default (used when the user just presses Enter)
count = ask_int("How many copies? ", default=1)

Have fun on your journey!

1

u/letszzgoo Oct 08 '26

I got back bczz my college plqcemnts are going to strt & yeah i dont have idea till now about any sort of project. Will try ur code surely!

1

u/MRH3X_ Oct 03 '26

Hello world

5

u/[deleted] Oct 02 '26

[removed] — view removed comment

2

u/letszzgoo Oct 02 '26

I love that way Only ! and i can easily dry run on ntbkk ..dont have to stare screen evrytime, its too much pain! 

1

u/BrightPen5193 Oct 06 '26

Small boy calm down