If else conditionals in Python | Python Tutorial #13

preview_player
Показать описание
In this video, I have explained about if else conditionals in python and how to use several related techniques to write effective python programs.
Рекомендации по теме
Комментарии
Автор

num1 = int(input('enter first number: '))
num2 = int(input('enter second number: '))
total = num1 + num2
print('Your total is: ', total)
if total > 100:
print('Your total is a huge number')
else:
print('Your total is a smaller number')

angelabrown
Автор

#Taking Input from the user
Inp1 = input("Enter First Number")
Inp2 = input ("Enter Second Number")

#Sum of the two numbers
total = int(Inp1) + int(Inp2)

If total > 100:
print ("You Have entered a number which is greater than 100")
else :
print (" Try Again Now")

RohanDasRD
Автор

num1 = input('Enter first number: ')
num2 = input('Enter second number: ')

sum = int(num1) + int(num2)
if sum > 100:
print(" you have entered huge number")
else:
print("try agan!")

skynetwork
Автор

Watching this at work, great video very informative. You have been helping me a lot with python stuff as I am a practical/kinaesthetic learner

isaacharewood
Автор

num1 = int(input('Enter a number: '))
num2 = int(input('Enter another number : '))
sum_of_numbers = num1 + num2
if sum_of_numbers <= 100:
print(f'{sum_of_numbers} Try again! To get bigger than 100')
else:
print(f'{sum_of_numbers} YES!! You have entered a huge number!')

muhammadyasin
Автор

num=str(input("Two numbers seperated by space = ")).strip().split(" ")
num=int(num[0]) + int(num[1])
if num>100:
print("You have entered big numbers")
else:
print("nice")

pavolhagara
Автор

a, b = int(input('Enter the first number\n')), int(input('Enter the second number\n')) # User enters 2 values

if a+b>100: # sum of a and b is greater than 100
print('You entered huge numbers')
else: # sum of a and b is less than or equal to 100
print('You entered small numbers')

vikrantsinghbhadouriya
Автор

num1=int(input("enter number"))
num2=int(input("enter number"))
if num1+num2<=100:
print(num1+num2)
else:
print("huge number")

prabhatmishra
Автор

a=int(input("Enter the first number: "))
b=int(input("Enter the second number: "))
sum=a+b
print(f"the sum of {a} and {b} is {sum}")
If sum<=100:
print("You have entered moderate numbers")
Else:
print("You have entered a huge number")

Destilos
Автор

# This is a very awesome course by Harry Bhai

print("enter your first number")
a = int(input())
print("enter your second number")
b = int(input())
c = a+b
if c>100:
print("you entered very huge numbers")
else:
print("your numbers are very small")

radheshyam
Автор

x=int(input("enter first value"))
y=int(input("enter second value"))
print(x)
print(y)
if x+y>100:
print("you are in huge number")
else:
print("it is okay")

Hanmant_
Автор

n1=int(input("Enter the first no "))
n2=int(input("Enter the second no "))
t=n1+n2
print(f"The sum of two no is {t}")
if t>=100 :
print("You have Enter huge no ", t)

AmanSingh-yyfn
Автор

#quick quiz
user1 = int(input('What is your first number:\n'))
user2 = int(input('what is your second number:\n'))
if user1 + user2 > 100:
print('You have entered a huge number')
else:
print('Your number is too small')

nowthatsme
Автор

num1 = int(input("enter your 1st number\n"))
num2 = int(input("enter your 2nd number\n"))
sum = f"{num1}+{num2}"
if sum>100:
print("you have enterd not a huge number")
else:
print("you enterd a huge number")
#love
#you
#herry
#bhai

harshpatil
Автор

num1 = int(input("Enter your first number:\n"))
num2 = int(input("Enter your second number:\n"))

if num1+num2>100:
print("You have entered a huge number")
else:
print("you haven't entered a huge number")

textail
Автор

n1 = int(input("Enter first number")
n1 = int("input("Enter second number")
if n1+n2>100:
print("You have entered a huge number")
please tell me is this correct!

vigneshms
Автор

User1 = int(input("Enter the number:"))
User1 = int(input("Enter the number:"))
a = User1 + User2

If a>100:
Print("User entered above 100 it's huge number")
else:
Print(a)

prashanthd
Автор

num1 = int(input("Enter Your First Number\n"))
num2 = int(input("Enter Your second Number\n"))
result = num1 + num2
if result>100:
print('Your number is too Large')
else:
print('You number is smaall')

leederrosi
Автор

X = int(input("Enter 1st number:\n"))
Y = int(input("Enter 2nd number:\n"))
Value = x+y
Print(value)

if value <= 100:
Print("ok")

elif value > 100:
Print("you entered a huge number")

manojdomana
Автор

#Solution for Today's Quiz
num1=int(input("Please Enter first number\n"))
num2=int(input("please enter second number\n"))
if (num1+num2)>100:
print(f"You have entered huge numbers and their sum is {num1+num2}.")
else:
print(f"The sum of the numbers is {num1+num2}, which is not huge enough.")

ajaypratapsingh