pets = "" cats = "RickyandLucy" pets = cats print(pets, end= " ") print(len(pets)) print("Intials: \n\t", pets[0], "and", pets[8])
kitty_one = "Ricky" kitty_two = "Lucy" cats = kitty_one + 'and' + kitty_two cats_2 = "Ricky" \ "and" \ "Lucy" print(cats) print(cats_2)
my_string = (f' 2 + 3 equals {2+3}') print(my_string) print(f' multiplication {12 * 123 = :f}')
result = -2 * 6 + 2**3 * 7
quantity = 10 value = 15.5 worth = quantity * value # what type is worth? print(worth)
number1 = int(input("Enter a number ")) number2 = int(input("Enter another number ")) print(number1 + number2) print(float(number1) + number2) print(number1)
count = count + 1 chances = chances -1
count +=1 chances -= 1
print(9/2) print(9//2) print(9//2.0)
print(34 % 7) print (34 // 7)
import math number = 5.6 print(math.ceil(number))