Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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
Comment

Python Identation

if 6 > 3:
    print("Six is greater than three")
Comment

PREVIOUS NEXT
Code Example
Python :: python requests-session for websites wihout login 
Python :: add function name and line number in python log file 
Python :: pandas subtract two columns 
Python :: to_csv zip pandas 
Python :: install cs50 library python 
Python :: Distribute Candy Algorithm Python 
Python :: find factorial of a number in python 
Python :: Django is MVT Not MVC 
Python :: opening aws images with pillow 
Python :: accessing list elements in python 
Python :: import * with __import__ 
Python :: Python Tkinter Message Widget Syntax 
Python :: move a file in python 
Python :: Shallow copy in python and adding another array to list 
Python :: Unable to locate package python-obexftp 
Python :: os scan dir python 2 
Python :: gensim loop keyed vector 
Python :: python variable and data structure 
Python :: Get First In Table Django 
Python :: split string and remove some and re-create again 
Python :: 10 minutes to pandas 
Python :: how to detect if a key was press down 
Python :: python Access both key and value using items() 
Python :: online python pseudo code writer python 
Python :: python networkmanager tutorial 
Python :: una esfera solida de radio 40 cm tiene una carga positiva 
Python :: command run test keep db python 
Python :: fibonacci 10th 
Python :: how to use print statement in python 
Python :: seaborn histogram normalize 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =