Show Menu
Cheatography

Python (Should to know) Cheat Sheet (DRAFT) by

Easy cheat sheet for Python . Might help beginners a lot and is helpful for revision

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Functions

REMEMBER: QUOTATIONS AND BRACKETS
String= statement where even a integer is treated as alphabet
print("string")       To print something
input("string")       To ask for response
input("string\n")       To get response in next line   [\n]
len("string")         To count length of string
string + string       To add strings
#string               To comment, something what computer completely ignores
 

Data types

1.String
ex. My score is 45. * even 45 is also treated as alphabet here

2.Integers
Any number but neither in fraction nor in decimals.

3.Float
Decimal numbers.

4.Boolean
True or False