Please enable JavaScript.
Coggle requires JavaScript to display documents.
Python interview basics - Coggle Diagram
Python interview basics
Conventions
Class name starts with UCase
name start with _ is private
name start with __ is strong private
ending with __ is language defined
Lines and Identation
Multi line statement \
comments begin with #
help()
Data types
Numbers
int
Long
Float
Complex
String
List
Square bracket
Multiple values
Multiple data types
slice oper
[1], [1:3]
Can be modified
Tuple
Uses ()
Read only
Multiple values
Multiple data types
Dictionary
Key, value
Cannot be sorted or ordered
Other
Del var1 to delete
Data type conversion
int(x)
long(x)
Float(x)
Complex
str(x)
repr(x)
eval(str)
tuple(x)
list(s)
ord(x)
hex(x)
oct(x)
Operators types
Decision making
if statement
elif
Loops
While loop
Nested loop
For loop
control statements
Break, continue, pass