Forum Discussion

RobertSmith's avatar
RobertSmith
Qrew Member
8 years ago

Syntax error in Python when referencing variables

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.
  • f strings are newly supported in Python 3.6. But what does this have to do with QuickBase.