0
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.