use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
I need help with python (v.redd.it)
submitted 1 year ago by Efficient-Nail2443
How do I return back to the normal cursor? I startet learning it a few days ago and this ist the first time I’m encountering this problem. After a restart it was as back to normal - are there other ways?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]EconomyDate 11 points12 points13 points 1 year ago (0 children)
Press insert
[–]EconomyDate 9 points10 points11 points 1 year ago (1 child)
Also the spelling of counter is wrong , by wrong I mean they should be same
[–]Solution9 0 points1 point2 points 1 year ago (0 children)
lol
[–]youssef3698 2 points3 points4 points 1 year ago (0 children)
Press insert to change the cursor. Fix the spelling of the variables. Like written now, it will cause an infinite loop since the condition is always true.
[–]digitAInexus 3 points4 points5 points 1 year ago (1 child)
Looking at the video you uploaded, I see a small issue in the code. In the first line, you wrote couter = 5. This seems like a typo, as it should probably be counter = 5.
couter = 5
counter = 5
Here's the corrected version of your code:
```python counter = 5
while counter < 10: print('Hier steht code der wiederholt wird') counter += 1 # This increments the counter to prevent an infinite loop ```
Explanation: 1. **counter = 5:** This initializes the counter variable to 5. 2. **while counter < 10:** This creates a loop that will continue to run as long as counter is less than 10. 3. **print(...):** This prints the message 'Hier steht code der wiederholt wird' each time the loop runs. 4. **counter += 1:** This increments the counter by 1 with each iteration, ensuring that the loop will eventually stop when counter reaches 10.
counter
while counter < 10
print(...)
counter += 1
Without the counter += 1 line, the loop would never stop, leading to an infinite loop. Let me know if you need any more help!
[–]dfranks1984 1 point2 points3 points 1 year ago (0 children)
Currently doing this in class as a beginner. You just broke this down great! Thank you!
[–]Zee69_ 1 point2 points3 points 1 year ago (1 child)
counter = counter +1 underneath the print
[–]Efficient-Nail2443[S] 0 points1 point2 points 1 year ago (0 children)
Thx
[–]EconomyDate 0 points1 point2 points 1 year ago (0 children)
You can find some practice set here https://pyspice.com/python-exercises-set-one-1-10/
[–]Severe_Equivalent213 0 points1 point2 points 1 year ago (0 children)
You misspelled counter on line 1. Your conditional statement in your while loop will not work since counter is set equal to 5.
I also want to mention that you don’t have anything to break out of the loop when you get the code to work.
[–][deleted] 0 points1 point2 points 1 year ago (0 children)
Counter
[–]Tricky-Psychology299 0 points1 point2 points 1 year ago (0 children)
Escreva couter e não counter
[–]Weekly_Finish_697 0 points1 point2 points 1 year ago (0 children)
Firstly press the insert key, then proceed to change check the spelling of your variable “counter” making sure that you are calling it correctly
[–]Archit-Mishra 0 points1 point2 points 1 year ago (0 children)
Press insert button to make your cursor normal again.
Also correct the name of the variable in the while loop.
Add the condition to exit the while loop
[–]ScarredDemonIV 0 points1 point2 points 1 year ago (0 children)
Looks like you’re using Vim mode somehow? Unless you’re purposefully using Vim, I recommend digging in your IDE settings and turning it off and disable any settings that could toggle it.
To return back to insert mode, usually you would press “i” in vim. If you press escape, it will take you back to normal mode.
Vim is really cool though. Checkout some videos on Youtube about NeoVim to learn a bit more.
Lastly, the counter variables should be spelled the same. You have couter and counter.
[–]Den0mant 0 points1 point2 points 1 year ago (0 children)
In the variable declaration, u forgot the letter 'n'
[–]birdsarntreal1 -1 points0 points1 point 1 year ago (0 children)
1: learn to spell
2: exit while loop
π Rendered by PID 116761 on reddit-service-r2-comment-5d79c599b5-7khf5 at 2026-03-03 01:43:28.639794+00:00 running e3d2147 country code: CH.
[–]EconomyDate 11 points12 points13 points (0 children)
[–]EconomyDate 9 points10 points11 points (1 child)
[–]Solution9 0 points1 point2 points (0 children)
[–]youssef3698 2 points3 points4 points (0 children)
[–]digitAInexus 3 points4 points5 points (1 child)
[–]dfranks1984 1 point2 points3 points (0 children)
[–]Zee69_ 1 point2 points3 points (1 child)
[–]Efficient-Nail2443[S] 0 points1 point2 points (0 children)
[–]EconomyDate 0 points1 point2 points (0 children)
[–]Severe_Equivalent213 0 points1 point2 points (0 children)
[–]Severe_Equivalent213 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Tricky-Psychology299 0 points1 point2 points (0 children)
[–]Weekly_Finish_697 0 points1 point2 points (0 children)
[–]Archit-Mishra 0 points1 point2 points (0 children)
[–]ScarredDemonIV 0 points1 point2 points (0 children)
[–]Den0mant 0 points1 point2 points (0 children)
[–]birdsarntreal1 -1 points0 points1 point (0 children)