r/PythonLearning • • Sep 07 '25

Today I learned how to use input() and print() in Python πŸŽ‰

I’m still a beginner, learning Python step step. Today I practiced using input() and print(). Feeling excited about my progress! What do you recommend as a simple beginner project to try next?

74 Upvotes

33 comments sorted by

8

u/Challseus Sep 07 '25

A number guessing game. Have your program pick a random number, then you use your `input` to enter in numbers. If it's greater than the random number, print something like "Too high", then "too low" for the other way. Keep guessing until you get the number.

Easy, and builds off what you're already doing, plus introduces random to you if you haven't already tried it.

6

u/Khaoula_17 Sep 07 '25

Thanks so much for the suggestion! 😊
I’m really excited to try this project and practice what I learned today. πŸš€

6

u/[deleted] Sep 07 '25

Hey, I have also started to learn python recently and I am currently practicing conditional statements.

And I will really like a study partner to stay motivated and also to share and work on new ideas. If interested please DM me.

3

u/Khaoula_17 Sep 07 '25

Hi! That sounds great 😊
I’d be happy to study and practice together to keep the motivation up.
I’ll send you a private message so we can coordinate. πŸš€

4

u/greatestaddy Sep 07 '25

Hey can i also join you guys! I’m also a beginner

1

u/Babuska-br Sep 08 '25

I would love to join you guys! Beginner here! πŸ™‹πŸ»β€β™€οΈ

1

u/[deleted] Sep 08 '25

Please DM me

3

u/Background-Two-2930 Sep 07 '25

I would look at terminals they use if statements splitting and can teach you a lot but can be a bit boring

2

u/Khaoula_17 Sep 07 '25

Thanks for the suggestion! 😊
I’ll definitely check out those exercises. Even if they’re a bit boring, I’m sure they’ll help me learn a lot. πŸš€

3

u/cully_buggin Sep 07 '25

We have a discord! We’re all beginners in python.

2

u/Khaoula_17 Sep 08 '25

That sounds great! πŸ˜„
I’d love to join the Discord chat and practice with other beginners. πŸš€

3

u/WealthNew2119 Sep 08 '25

tic tac toc game is good for practice.

3

u/Khaoula_17 Sep 08 '25

Thanks for the suggestion! 😊
I’ll try a Tic-Tac-Toe game (X and O) for practice.
It sounds like a fun way to improve my Python skills! πŸš€

3

u/RonzulaGD Sep 08 '25

Make a small calculator. Make the user input 2 numbers and an operation and the program will print the result. Try to learn how to handle incorrect inputs (for example user inputs text instead of a number)

2

u/Khaoula_17 Sep 08 '25

Thanks for the suggestion! 😊
I’ll definitely try creating a calculator that handles invalid inputs.
It sounds like a great way to practice Python! πŸš€

2

u/Advanced-Theme144 Sep 09 '25

If you manage to make a really basic calculator, later on try make a scientific calculator as well, you’ll learn a lot more interesting programming concepts while trying to ensure it respects BODMAS.

1

u/Khaoula_17 Sep 15 '25

Thank you, I will take care of that. ☺️

2

u/mycumputa Sep 08 '25

Congratulations!

Follow this channel to keep going!

https://youtube.com/@aaryanscontent

2

u/Khaoula_17 Sep 08 '25

Thanks ☺️

2

u/mycumputa Sep 08 '25

Subscribe if you can, to encourage the young talent

2

u/Khaoula_17 Sep 15 '25

Done, thank you 🌸

2

u/Upbeat_Marsupial9770 Sep 10 '25

A simple, next step would be to learn Object-Oriented Programming (OOP). Its really, really easy to learn, but it's one of the most useful things in python.

1

u/Khaoula_17 Sep 15 '25

Fine, thank you ☺️

1

u/[deleted] Sep 08 '25

Try "Guess Number" game but player has 5 attempts

3

u/Khaoula_17 Sep 08 '25

Thanks for the suggestion! 😊
I’ll try the number guessing game with 5 attempts.
Sounds like a fun way to practice Python! πŸš€

2

u/[deleted] Sep 08 '25

Good luck!🀝

3

u/Khaoula_17 Sep 08 '25

Thanks! ☺️

2

u/Kqyxzoj Sep 08 '25

Tomorrow you will learn that input() hardly ever gets used, while print() will endure. ;)

1

u/Snufolupogus Sep 09 '25

What replaces input? Still learning and I feel like i use it a lot.

3

u/Kqyxzoj Sep 09 '25

Well, most python scripts that I encounter tend to be not all that interactive.

And when you actually do need something interactive, IMO input() is just woefully insufficient.

I have a few scripts that are marginally interactive in the sense of "I am about to do <ACTION>. Are you really really sure?" And at that point it is just [ENTER] to continue or CTRL-C to abort. That sort of thing. Or maaaybe a very simple numbered menu where I can pick option 1 ... 4, or just ENTER to pick the default. Anything more is just too cumbersome. Try editing anything more than a few words and then correct some word in the middle. Plain input() is just entirely too annoying even for something as simple as that. Want to jump to the start of the line? Noooo problem, just backspace all the way and just re-type everything. How nice...

Typically when I really want to do some interactive tinkering I'll just use ipython or a notebook. And if I want proper menus (which I hardly ever need with the python stuff I do) then I use something like Textual. Most input tends to come from stdin or files, not interactive user data entry.

1

u/ArtBeneficial4449 Sep 08 '25

This entire thread feels like AI talking to each other.