Discussions

Expand all | Collapse all

Syntax error in Python when referencing variables

  • 1.  Syntax error in Python when referencing variables

    Posted 08-14-2017 02:52
    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.


  • 2.  RE: Syntax error in Python when referencing variables

    Posted 08-14-2017 13:20
    f strings are newly supported in Python 3.6. But what does this have to do with QuickBase.