Skip to main content
Question

Syntax error in Python when referencing variables

  • August 14, 2017
  • 0 replies
  • 48 views

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.
This topic has been closed for replies.

  • Registered
  • August 14, 2017
f strings are newly supported in Python 3.6. But what does this have to do with QuickBase.