Program temperature.py

Enter Celsius temperature: 12

12 C = 53 F

12 C = 53.6 F

Enter Celsius temperature: 34

34 C = 93 F

34 C = 93.2 F

 


Program can_you_relate.py

Enter number: 12

Enter number: 14

    12 < 14 : True

    12 > 14 : False

    12 <= 14 : True

    12 >= 14 : False

    12 == 14 : False

    12 != 14 : True

Enter number: 8

Enter number: 8

    8 < 8 : False

    8 > 8 : False

    8 <= 8 : True

    8 >= 8 : True

    8 == 8 : True

    8 != 8 : False

 


Program break_the_bank.py

Number of quarters, dimes, nickels, and pennies: 27 14 28 18

Coinage

    27 quarters

    14 dimes

    28 nickels

    18 pennies

are worth 9.73 dollars

Number of quarters, dimes, nickels, and pennies: 1 2 3 4

Coinage

    1 quarters

    2 dimes

    3 nickels

    4 pennies

are worth 0.6400000000000001 dollars

 


Program logical_operators.py

##### Logical values (bool)

True

False

 

##### Logical and

True and True = True

True and False = False

False and True = False

False and False = False

 

##### Logical or

True or True = True

True or False = True

False or True = True

False or False = False

 

##### Logical negation

not True = False

not False = True