The Brain Booster
Python For Beginners Sololearn Sources
1] Flight Time
distance = 7425
speed = 550
x = distance/speed
print(x)
2] Strings
print("1.")
print("2.")
print("3.")
print("4.")
print("5.")
print("6.")
print("7.")
print("8.")
print("9.")
3] Tip Calculator
bill = input()
tip = int(bill) * 0.2
print (tip)
4] BMI Calculator
weight = int(input())
height = float(input())
if weight/height**2 < 18.5:
print ("Underweight")
if weight/height**2 >= 18.5 and weight/height**2 < 25:
print ("Normal")
if weight/height**2 >= 25 and weight/height**2 < 30:
print ("Overweight")
if weight/height**2 >= 30:
print ("Obesity")
5] Sum of Consecutive Numbers
num = int(input())
nums = list(x for x in range(1, num+1))
print(sum(nums))
6] Search Engine
det()
word = input()
seacrh(text,word)
f seacrh(text,word) :
if word in text :
print ('Word found')
else:
print('Word not found')
text =
0 Comments