-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtut10.py
More file actions
37 lines (31 loc) · 838 Bytes
/
tut10.py
File metadata and controls
37 lines (31 loc) · 838 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
#explore python in function visit-https://www.w3schools.com/python/python_ref_functions.asp
#python list method visit-https://www.w3schools.com/python/python_ref_list.asp
programing_languages = ["java","C","C++","python","perl","ruby","javascript"]
# print(programing_languages)
print(programing_languages[6])
#number list function python.
number = [7,22,11,0,90]
# print(number)
#number.remove(11)
# number.sort()
# print(number)
# number.reverse()
# print(number)
# number.pop()
# print(number)
# number = [2222]
# number.append(9)
# print(number)
number.insert(99,0)
print(number)
#interchanging variables in python.
a=1
b=4
#by traditional method.
# temp = a
# a = b
# b = temp
# print(a,b)
#by shortcut method using python.
# a,b = b,a
# print(a,b)