educative.io

Educative

Issue with Debugging

It looks like the interpreter is running Python 3.52 - I noticed because I tried to debug with f-strings, but they came out starting in 3.6. Is there a reason for relying on the older version?

Thanks!


Course: Grokking the Coding Interview: Patterns for Coding Questions - Learn Interactively
Lesson: Problem Challenge 1 - Grokking the Coding Interview: Patterns for Coding Questions

Hi @Ammar_Ahmad_Farid -

I’m really not sure what I’ve got wrong here - the code in the bottom screenshot below runs properly in my own interpreter running 3.9. But as you can see in the top screenshot, that interpreter looks like it’s running 3.5.

The code snippit:
x = 5
print(f’F-string test, x is: {x}’)

From this section of the course



(Just to be sure, f-strings were tested with double and single quotes)

Thanks!