New course! Every coder should learn Generative AI!
Try a free lesson0
Question about input() use in Python
Hello, Ive been having an issue using input() while working on a code bit. Sequence=āHero attacks Boss with input(āEnter weapon: ā).ā print(Sequence) Basically, Iām wanting to use several inputs with Sequence until Boss_health hits 0. But in the while loop Im using after, I canāt figure out how to refer back to the input() without hitting a EoF error. Im sure how I have it is wrong in some simple way, but I canāt seem to figure out an alternate way. https://code.sololearn.com/crJqxu1AwPv6/?ref=app
1 Answer
0
Remember that Sololearn needs all of the inputs upfront.
I think another issue is that you've labelled your variables with capitals and that can make the compiler think of classes/methods/objects.