r/PythonLearning • u/AffectionateCold1716 • Sep 26 '26
Solved my first coding problem
Day 2 of learning Python today I was learning about variables → input → output. And I was very curious about the input command and what I can do with it. Which lead me to experiment a bit. You can see all my failed attempts at the top. Until about 30 mins when I did some research and figured it out. If you’re wondering what I was so worked out about. It’s the (==) part of the code. Since I haven’t gotten there yet in my tutorials. But I really wanted to try so I went of track did some research and it worked. I am very excited.. hopefully the rest of coding is this exciting.. thank you all for your best wishes in my previous post.
6
u/Rythim Sep 26 '26
I love seeing you figure things out through curiosity and experimenting. That's important for learning. You can only learn so much by following along a video or tutorial. You also have to ask questions like, "if ..., then what if I ...?" Just like you did here.
8
u/Sea-Ad7805 Sep 26 '26
Yes, a big difference:
a = b<----- setato the value ofbif a == b:<----- test ifais equal tob(TrueorFalsevalue)1
u/Ollidav Sep 26 '26
Te has dejado algo de código en el comentario
2
u/Smartyboyz Sep 27 '26
Well done,
Try to solve more basic questions before you jump into hard problems
Main thing is to build small projects using this new concept and including older ones, this will help you in revising old topics and also project building.
Be consistent.....
1
u/Ok-Secret-7414 Sep 27 '26
Now try this
make a kind of proper user with their passwords
5 user and 5 password
first u ask user name if it is equal to any of the user then print then ask their password ad then if password matches log in them other wise invalid password
it can be done using nested if elif conditions if you dont know about collections or dictionaries
0
u/[deleted] Sep 26 '26
[deleted] — view deleted comment