Skip to content
CodeKruPro

Formatting with f-strings

QuizEasy-MediumPython only

With name = "Asha" and age = 30, which statements are true? Pick all that apply.

  • f"{3.14159:.2f}" is "3.14"
  • f"{age=}" is "age=30"
  • f"{name} is {age}" is "Asha is 30"
  • "Age: " + age is "Age: 30"

This question is part of Pro+

Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.

See Pro+

Already have Pro+? Sign in