DAY 2(CODE INFINITY)
lets start our second day by some basic programmes like addition of two numbers , multiplication ,division ,subtraction basically use of operators in our code so lets get started . so I know some more functions because I have learn all these basic things before this I have started publishing late but as it says na it's never late to start so in this code we take input from our user x=input("Enter a number: ")
x=input("Enter a number x: ")
y=input("Enter a number y: ")
print("sum of number ",x, "and" ,y," is:" ,x+y)
In place of + we can also use -, /, * , // , % etc. for subtraction ,multiplication , division , remainder and this is how we can use operators on two numbers given by user let me show you an example of this by moving to replit and show how it works
This is the link of replit which i have show what is the output of this code: https://replit.com/@shwetaantil97/Python?v=1
Also I will be providing the screenshot :
Comments
Keep moving upward 💯