-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.py
More file actions
56 lines (43 loc) · 899 Bytes
/
Copy pathindex.py
File metadata and controls
56 lines (43 loc) · 899 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# print("danish")
# print(3)
# print(2*10)
# this is a comment
# print("hello\nbro how are you")# this is comment
'''
these are
multi
line comment
'''
# print("how","are","you",sep="-",end="909")
# print("ending")
a=1 # now 1 is stored in a
b=True
c="danish"
d=complex(1+2)
# print(a)
# print(type(a))
# print(type(b))
# print(type(c))
# print(type(d))
# dict ={"name":"danish","class":"btech cs"}
# print (dict)
# ab="1"
# ba="2"
# print(int(ab)+int(ba))
# implicit conversion int this the result will be of flaot
# aa=12
# cc=2.1
# print(aa+cc)
a=int(input("enter 1st no "))
b=int(input("enter 2nd no "))
print(a+b)
print('he said,"i want to eat an apple"')
m="harry"
print(m[0]) # it will gives us the element of index[0]of m string
# n='''danish
# bhai
# zindabad'''
# print(n)
# this forloop will print all the characters one by one
for character in m:
print(character)