Question · Python course · Module 1: Python Basics

Summary - F-strings

Which f-string syntax is correct?

Answer options

  • f'Result: {result}'
  • 'Result: {result}'f
  • f['Result: {result}']
  • f('Result: {result}')
Show the answer

Correct answer:

  • f'Result: {result}'