DAY 7(CODE INFINITY) 

Today we talk about a topic named conditional expressions in which  we  mainly  have three keywords  if , else , elif. Let's use all of them in a code....

x=int(input("Enter value of x: "))
y=int(input("Enter value of y: "))
if (x>y):
        print("x is greater than y")
elif (x==y):
        print("x is equal to y")
else:
        print("x is less than y")

This is a simple code which demonstrate the use of if , elif and else . You will get more clarity when you see its output so move to the screenshot of the repel which shows how it run.

Shows output of all three cases

Link of the repel :
https://replit.com/@shwetaantil97/Day-7conditional-expressions





  

Comments

Lusia said…
Great CONTENT 💯👍
And full of knowledge 💯👍

Popular posts from this blog