Syntax error in Python when referencing variables

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • In Progress
  • (Edited)
my_name  = 'Robert'
my_age = 35
my_height = 74
my_weight = 180
my_eyes = 'blue'


print(f"Let's talk about {my_name}.")
print(f "He's {my_height} inches tall.")
print(f "He's {my_weight} pounds heavy.")
print(f "He's got {my_eyes}.")



Getting a syntax error on each print command near the end and cannot figure out why.
Photo of Robert Smith

Robert Smith

  • 70 Points

Posted 2 years ago

  • 0
  • 1
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,044 Points 20k badge 2x thumb
f strings are newly supported in Python 3.6. But what does this have to do with QuickBase.