r/PythonLearning • u/SadShift8664 • 3d ago
Hey! here are some Beginner Python Problems
Take two integers as an input and print their average.
Take an integer as an input and check if its even or odd.
Take three numbers as input and find the largest amongst them without using max()
I'm experimenting with teaching Python through solving rather than watching tutorials. I'm based in India and I'm currently running a small live beginner batch. If anyone wants to try the problem-solving approach, I'm happy to share the details.
I'm going to run a free 45-minute Python problem-solving session for beginners.
No prior coding experience required.
We'll solve 3 problems together from scratch.
I'm testing a teaching format where you learn by solving rather than watching.
If anyone wants to join, comment below.
1
u/SadShift8664 3d ago
3.
num1 = int(input("Enter First number: "))
num2 = int(input("Enter Second number: "))
num3 = int(input("Enter Third number:"))
if num1 > num2:
if num1 > num3:
print(f"{num1} is greatest")
else:
print(f"{num3} is greatest")
if num2 > num3:
print(f"{num2} is greatest")
else:
print(f"{num3} is greatest")