-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path11.tuple.py
35 lines (25 loc) · 1.29 KB
/
11.tuple.py
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
# WELCOME TO HEY KYA KARU. DON'T FORGET TO SUBSCRIBE CHANEL TO GET NEW UPDATES
# मैं अनलाइन ट्रैनिंग भी देता हु तो अगर किसी को अनलाइन ट्रैनिंग करनी है तो मुझे कान्टैक्ट कर सकता है heykyakaru@gmail.com पर।
# HEY KYA KARU यूट्यूब के जरूरी लिंक
# 1. Python Basic and Advance ट्यूटोरियल प्लेलिस्ट https://www.youtube.com/playlist?list=PLK6wiPavf7QikS9PMYrGZXz1HlE1KZLD3
# 2. PHP Projects प्लेलिस्ट https://www.youtube.com/playlist?list=PLK6wiPavf7QiEj6IPc3lkjz1wR4w9RM6B
# 3. GitHubट्यूटोरियल प्लेलिस्ट https://www.youtube.com/watch?v=LUyVs2MTlTM&list=PLK6wiPavf7Qjydpc5v-hdIoqCx2V19pHP
'''
tuple
non changable
'''
# Tuple
newtuble = ('tuple','list','set','dictorny')
print(type(newtuble))
# access
print('\nTUple index value => ',newtuble[0])
# Change Tuple Values : convert tuple to list
secondtuple = list(newtuble)
secondtuple.append('newtuple')
# convert list 2 tuple
newtuble = tuple(secondtuple)
print('\n\nNew TUple => ',newtuble)
# del
del newtuble
print('\n\nNew TUple => ',newtuble)
# Tuple Methods