Answers for "python indentation"

2

python indentation

# usually use 4 spaces to indent (don't mix with TABs)
j = 1
site = 'cg'
while(j<= 1):
    if site == 'cg': 
        print('okay') 
    else: 
        print('retry') 
    j += 1
    print ('j: ' + str(j))
print('Done') 					# okay          j: 2        Done
Posted by: Guest on May-13-2021
2

indentation in python

Indentation in Python refers to the (spaces and tabs) that are used at the beginning of a statement.
Posted by: Guest on April-27-2020
0

indent python

A line is indented
Posted by: Guest on September-04-2020

Python Answers by Framework

Browse Popular Code Answers by Language