forked from kactlabs/python-75-hackathon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintro.py
More file actions
36 lines (29 loc) · 740 Bytes
/
Copy pathintro.py
File metadata and controls
36 lines (29 loc) · 740 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
36
# Introduction
# -->'#' is used for commenting single lines
'''
These are used for commenting multiple lines
'''
# Normal print statements
'''
Print statement is used for print
Various types of print statements are as follows:
'''
print("Praneeth Reddy") #Praneeth Reddy
print("Praneeth"+"Reddy") #PraneethReddy
name="Praneeth"
print(name) #Praneeth
print(15+10) #25
x=15+10
print(x)
'''
Follow BODMAS rule for arithmetic expressions
If a statement or equation involves it is defaulted as float
'''
y=15-10*0/5
print(y) #15.0
'''
Type Conversion
int() is used to convert expression to int, similarly other datatypes can also be type casted
'''
z="10"
print(int(z)+10) #20