+ 1
We can define a condition for that. I'm taking user input for just that. https://code.sololearn.com/Wzzi1eL707Z5/?ref=app
27th Mar 2022, 2:01 AM
zexu knub
zexu knub - avatar
0
It is increasing, but since it's not in a loop the code is terminating after reading the last prompt value.
27th Mar 2022, 1:33 AM
zexu knub
zexu knub - avatar
0
Wrong syntax
27th Mar 2022, 1:35 AM
zexu knub
zexu knub - avatar
0
It's not efficient what you want to do, but wrapping the whole code except the initial assignment of trys = 0 in a while loop would work.
27th Mar 2022, 1:49 AM
zexu knub
zexu knub - avatar