-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPython_Notes_1
More file actions
35 lines (25 loc) · 931 Bytes
/
Python_Notes_1
File metadata and controls
35 lines (25 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
variables are vary + able
Example env = "dev"
= is called assignment operator
a = 100 # its constant
# + - * / = (are called OPERATORS)
a + B (Here a & b are OPERANDS)
(a + b) - OPERATION
#Data Types
#int 1 2 5 8 100 5741 3695
#float 1.2 65.6 874.23
#bool True / False
str "value inside quotes is string"
#python3 - to get interacctive shell (python version depends)
#exit() - to exit interacctive shell
== - Equality operator
!= - Not equal to
range (start, end, increment / decrement) by default increment
print(f" {num} x {i} = {num*i}") - f for Formatting the things.. co-relate the example Here
for i in range(): -for loop
while value == "True": - for loop
print("this is True") - Infinate loop
break
Function : Where we can define certain tasks and then using if condition, can use it
check functions_test.py for more details
Py Pi = Library for python (python package index)