What's new

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

Back
Top