repr() Function in Python
Level 117 keystrokes
This uses repr() to get the string representation with quotes.
Python code
# repr() returns the representation of an object as you would write it in code# For a string this includes the quotes, so 'hi' is printed instead of hi1print(repr("hi"))Output
'hi'
Practice typing this code. Results are not recorded in the rankings.
Symbols in this code
The symbols you type in this Python code and how often they appear.
"× 2(× 2)× 2