+ 1
We can define a condition for that. I'm taking user input for just that.
https://code.sololearn.com/Wzzi1eL707Z5/?ref=app
0
It is increasing, but since it's not in a loop the code is terminating after reading the last prompt value.
0
Wrong syntax
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.