8 Respuestas
+ 6
mohammad ali Sheikh In most statements of most languages, spaces only affect string values - because that's the only place where they have a meaning
+ 10
You can check it yourself in Python editor for example here in Sololearn Playground. Please try to do that and than ask again if you have still a problem. How about a python course.
+ 8
mohammad ali Sheikh ,
most of the cases when and how using spaces in python code are explained in the python style guide pep-0008:
https://peps.python.org/pep-0008/#code-lay-out
+ 7
mohammad ali Sheikh did you try as I recommended?
Here in this code example can you see how is the answer:
https://code.sololearn.com/cBL9Kj0oB4nQ/?ref=app
+ 2
Yes, ofcourse my friend, altough my programming knoledge is not enaugh but I tried some in Sololearn playground and that made me realize it's not so important to have empty spaces between components when we're coding in python.
+ 2
Indentation is the one place where consistency in spaces is important in Python
+ 1
I checked it and because of this I'm asking here cause in some cases I think it would be a problem.
+ 1
Tnk u both Emerson Prado and Lothar