🐍 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}")
Salamat idol, pwede pala to, ayaw kase dun sa online compiler pero gumana dun sa dinownload kong python ide na offline hehe
 
Lods alam mo ba kung pano to ayusin
View attachment 1645438
Sa else lang na condition yung na re read nya, saan kaya ang problema?
SLR Sir, bali na read nya yung else: statement kasi nakalimutan mo yung {num1} and {num2} sa luob ng print statement mo, dapat ganito yung else: statement mo po, print(f"{num1} is equal to {num2}") tawag jan f string mabilis yan, base on benchmark
 
Status
Not open for further replies.

Similar threads

About this Thread

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

Trending Topics

Online now

Members online
1,160
Guests online
2,945
Total visitors
4,105

Forum statistics

Threads
2,331,828
Posts
29,260,614
Members
1,147,844
Latest member
arcefxy
Back
Top