# -*- coding: utf-8 -*- """ Created on Fri Sep 2 11:19:49 2022 @author: cpresser """ #import math functions import math x = 5.5 y = 4 language = "Python" #printing print(x, y, language) print("(x, y)") #formatted string: fstring print(f"({x}, {y})") #format with 2 decimal digits print(f"({x:.2f}, {y:.2f})") #print x's type print(type(x)) #int converts x to an integer print(int(x)) #use math functions (see above line 9) irrational = math.sqrt(2) #note the decimal expression ends print(irrational) print(math.pi) #two? print(irrational*irrational) print(irrational*irrational - 2) #get user input - enter two numbers number1 = input("Enter a number: ") print(number1) number2 = input("Enter a number: ") print(number2)