
# 1
color = "red"
name = "Carly"
print("Your name is " + name + " and your favorite color is " + color + ".")

# 2
name = "Sam"
age = 12
print("My name is " + name + " and I am " + str(age) + " years old.")

# 3
age = 5
name = 'Carly'
print("Your name is " + name +
      " and your age is " + str(age) + ".")

# 4

# "A car travelling at 70 mph takes 2 hours to go 140 miles."

milesPerHour = 70
distanceTravelled = 140
timeTaken = distanceTravelled/milesPerHour
print("A car travelling at " + str(milesPerHour) + " mph takes " + str(timeTaken)
      + " hours to go " + str(distanceTravelled) + " miles.")


# 5

age = input("How old are you?  ")
name = input ("What is your first name?  ")
print ("Your name is " + name +
       " and you are "  + str(age) + " years old.")

#6

fruit = apple
price = 5
print("The" + fruit + "costs $" + str(price))
