🐍 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.

About this Thread

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

Trending Topics

Online now

Members online
467
Guests online
1,520
Total visitors
1,987

Forum statistics

Threads
2,295,341
Posts
29,097,358
Members
1,206,817
Latest member
Stiven6465
Back
Top