0

How to make indentations?

14th Apr 2018, 4:52 AM
Chris
Chris - avatar
4 Answers
+ 3
An indentation is just like 4 spaces but try to reword your question kid
14th Apr 2018, 4:53 AM
Ole113
Ole113 - avatar
+ 2
The code playground on mobile has a tab key above the normal keyboard or use the tab key on your keyboard if using PC. In Python, the indentation is primarily used instead of brackets/braces. In other languages it's usually just whitespace to help with readability.
14th Apr 2018, 5:07 AM
Duncan
Duncan - avatar
0
def function(x,y): print(x) print(y) print(x+y) âŹ†ïžindented spaces
14th Apr 2018, 5:26 AM
᠌᠌Code X
᠌᠌Code X - avatar
0
Yes, you must be aware of that. Once I copied some code from IDE to Sololearn it was a problem cause I used Tab there and in SL it looked like everything is ok but till I "re-idented" that code again it didn't work.
14th Apr 2018, 4:55 PM
Sasha Djekic