fork(1) download
  1. # your code goes heremy_name = 'Zed A. Shaw'
  2. my_age = 35 # not a lie
  3. my_height = 74 # inches
  4. my_weight = 180 # lbs
  5. my_eyes = 'blue'
  6. my_teeth = 'white'
  7. my_hair ='brown'
  8.  
  9. print(f"Let's talk about {my_name}.")
  10. print(f"He's {my_height} inches tall")
  11. print(f"He's {my_weight} pounds heavy")
  12. print("Actually that's not too heavy")
  13. print(f"He's got {my_eyes} eyes and {my_hair} hair.")
  14. print(f"His teeth are usually {my_teeth} depending on the coffee")
  15.  
  16. # this line is tricky to get it exactly right
  17. total = my_age + my_height + my_weight
  18. print(f"If I add {my_age}, {my_height}, and {my_weight} I get {total}.")
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Traceback (most recent call last):
  File "/usr/lib/python3.5/py_compile.py", line 125, in compile
    _optimize=optimize)
  File "<frozen importlib._bootstrap_external>", line 735, in source_to_code
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "./prog.py", line 9
    print(f"Let's talk about {my_name}.")
                                       ^
SyntaxError: invalid syntax

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.5/py_compile.py", line 129, in compile
    raise py_exc
py_compile.PyCompileError:   File "./prog.py", line 9
    print(f"Let's talk about {my_name}.")
                                       ^
SyntaxError: invalid syntax

stdout
Standard output is empty