🐍 Python Pa help po sa code ko

Status
Not open for further replies.
# Sana makatulong
num1 = int(input("Enter First number: "))
num2 = int(input("Enter Second number: "))

if num1 > num2:
print(f"{num1} is greater than {num2}")
elif num1 < num2:
print(f"{num1} is less than {num2}")
else:
print(f"{num1} is equal to {num2}")
 
# Sana makatulong
num1 = int(input("Enter First number: "))
num2 = int(input("Enter Second number: "))

if num1 > num2:
print(f"{num1} is greater than {num2}")
elif num1 < num2:
print(f"{num1} is less than {num2}")
else:
print(f"{num1} is equal to {num2}")
Lods alam mo ba kung pano to ayusin
Screenshot_20210930_213944.webp
Sa else lang na condition yung na re read nya, saan kaya ang problema?
 
num1 = input("First number: ") num2 = input("Second number: ") if num1 < num2: print("Num 1 is greater than Num 2") elif num1 > num2: print("Num 1 is less than Num 2") else: print("Both numbers are equal")

Try mo to lods.
 
num1 = input("First number: ") num2 = input("Second number: ") if num1 < num2: print("Num 1 is greater than Num 2") elif num1 > num2: print("Num 1 is less than Num 2") else: print("Both numbers are equal")

Try mo to lods.
pahelp namabc mga lods may codes kasi ko kaso dapst pseudocode sana matulongan niyo
 
# Sana makatulong
num1 = int(input("Enter First number: "))
num2 = int(input("Enter Second number: "))

if num1 > num2:
print(f"{num1} is greater than {num2}")
elif num1 < num2:
print(f"{num1} is less than {num2}")
else:
print(f"{num1} is equal to {num2}")
Gumagana tong suggest ni paps.
 
# Sana makatulong
num1 = int(input("Enter First number: "))
num2 = int(input("Enter Second number: "))

if num1 > num2:
print(f"{num1} is greater than {num2}")
elif num1 < num2:
print(f"{num1} is less than {num2}")
else:
print(f"{num1} is equal to {num2}")
Lods, pano i fix, ValueError
 
Status
Not open for further replies.

About this Thread

  • 22
    Replies
  • 813
    Views
  • 6
    Participants
Last reply from:
0R1-qt

Trending Topics

Online now

Members online
767
Guests online
1,450
Total visitors
2,217

Forum statistics

Threads
2,295,310
Posts
29,097,211
Members
1,206,796
Latest member
anothermuleemail
Back
Top