Why does this code throw an error:
Run it and then if you know the answer please post it(if you know the programming language Python).Please give me a detailed answer.
Why does this code throw an error:
Run it and then if you know the answer please post it(if you know the programming language Python).Please give me a detailed answer.
You mean this error:
Traceback (most recent call last):
File "main.py", line 29, in <module>
word = input("{player} can you please enter a word.".format(player = player))
EOFError: EOF when reading a line
Codecademy has problems with the input()
method sometimes.
what if you run your code here:
https://www.programiz.com/python-programming/online-compiler/
Isn’t the input()
method(you said it was an method) a function?
Why does Codecademy have problems? Explain for me.
Why can’t we fix the problems?
yes, input()
is a function. The longer you program, the lousier you on occasion you get with perfect naming
I am only helping on the forum, this is a question for one of the engineers/developers at codecademy. Or maybe the CM can answer this. I can’t help you with this
How can I ask the engineers/developers? What is the CM?
How can I ask the engineers/developers? What is the CM?
A CM is a Community Manager
; they work for CC. But they are already aware of this issue.
(Note, CM can also mean Candidate Master, amongst other things…)
What is the CC? How do I ask the CM, one of the engineers and one of the developers at Codecademy?
codeneutrino says they are aware.
CC = codecademy
How can I improve the code(the code at the top of the page)?
What about that? I’ve waited for months.
As you well know by now, the super users (SU) en moderators are only volunteers on the forum. I can’t and actually go solve this problem myself in the codecademy code-base.
Do you have an account for the main CC page?
Of course I do, please just get to the point straight away. I will manage
This point:
The 1st post and the 13th post.
Also, do you do any more courses on CC(not CC Forums).
Since the input()
method is creating an error, what could you do to avoid that error?
That time I used .format()
over f
strings but now I use the reverse. Is there anything that .format()
provides that is not ìn f
strings. When would you use .format()
over f
strings.
Mainly, you’d use .format()
if you were using Python 2.6+. f-strings
only came in in Python 3, so if you’re using an earlier version of Python, f-strings
won’t be accessible. You can read more about it here.