[python]trying to change a variable based on a result in loop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

[python]trying to change a variable based on a result in loop

okey this should be really easy im certain the logic is sound, and ive got the syntax correct but, its not changing the guess after each iteration and im not sure why https://code.sololearn.com/c4iq9sQ1ICTi/#py

21st Sep 2020, 10:36 PM
MaxBanter
MaxBanter - avatar
3 Answers
+ 3
Here you go 🙌 See those parenthesis! https://code.sololearn.com/cz6O04zQ0GbB/?ref=app
21st Sep 2020, 10:42 PM
Namit Jain
Namit Jain - avatar
+ 2
MaxBanter 👍🙂
21st Sep 2020, 11:04 PM
Namit Jain
Namit Jain - avatar
+ 1
okey so adding variables has to be done in brackets, thankyou so much it really helped ive beenusing my free time for weeks to do this
21st Sep 2020, 10:50 PM
MaxBanter
MaxBanter - avatar