A
A
applonder2021-01-06 13:27:07
PyCharm
applonder, 2021-01-06 13:27:07

Why is code indenting not working in pycharm?

I'm new to python and I just moved from a very easy programming thread to this one and can't just indent the code. When I press enter it just creates a new line of code but it starts from the beginning and not from the while block and the same if I want to make a space between some lines of code. They remain in their places and a new line of code is simply created from below

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2021-01-06
@applonder

Tab, right?
And, if after while there is no indent on a new line, then most likely you forgot to put a colon after while.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question