Python For Beginners Sololearn Course

 The Brain Booster 

 Python For Beginners Sololearn Sources 


PYTHON FOR BEGINNERS  PROGRAM CODES LINK






Flight Time

distance = 7425

speed = 550

x = distance/speed

print(x)

Strings

print("1.")

print("2.")

print("3.")

print("4.")

print("5.")

print("6.")

print("7.")

print("8.")

print("9.")

Tip Calculator

bill = input()

tip = int(bill) * 0.2

print (tip)

 

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")

 

Sum of Consecutive Numbers

num = int(input())

nums = list(for x in range(1, num+1))

print(sum(nums))

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 =

Post a Comment

0 Comments

Close Menu