#6 Python Tutorial for Beginners | Tuple | Set in Python

#6 Python Tutorial for Beginners | Tuple | Set in Python

Telusko

5 лет назад

2,035,448 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Apeakigh Joseph kator
Apeakigh Joseph kator - 24.11.2023 19:51

Thank navin

Ответить
Shibani Sill
Shibani Sill - 17.11.2023 13:23

so we have to first make a list of nums given, then use nums.remove(95) enter, same for other two and then when we check nums we would see these numbers removed from the list. is there a shortcut to remove all the three at one shot?

Ответить
Christine Johnson
Christine Johnson - 14.11.2023 09:15

my answer to the quiz:
nums = [25,36,95,14,12,26]
print nums
[25, 36, 95, 14, 12, 26]
del nums[2:5]
print nums
[25, 36, 26]
Thank you I'm leaning so much !

Ответить
Diaz Mugume
Diaz Mugume - 14.11.2023 01:50

Thanks for the tutorials navin. My question is ..apart from the set function displaying values in a different sequence what else does it do.. coz i tried using set.pop{} in vain. it brought error.
i even used the curly brackets.

Ответить
Ali Yusuf
Ali Yusuf - 13.11.2023 09:48

Sir i have try with my creative value of using s= [random number]. When i like to arrange them in ascending order i used s.sort()
s
An i have got it right, that's the correction that i have made, and you don't show us in the video

Ответить
Anonymous
Anonymous - 11.11.2023 21:58

but I can change the tuple values in here, how ????
Yeah I put a space as "tup [1] = 33"

Ответить
Hari Ram
Hari Ram - 02.11.2023 05:39

nums=[25,36,95,14,12,26]
del nums[2:5]
print(nums)

Ответить
Yakubu Abdullahi
Yakubu Abdullahi - 29.10.2023 17:55

I'm really enjoying your classes, more grease to your elbow

Ответить
gorle priyanka
gorle priyanka - 21.10.2023 07:10

del numb [2:4]

Ответить
Iamweirdl1k3
Iamweirdl1k3 - 20.10.2023 07:45

i think in the new update they made it so tup could be changed
cause it did for mine

Ответить
Daksh Pawar
Daksh Pawar - 20.10.2023 04:34

Where is the quiz? 😮

Ответить
Tarun teja Kapisetti
Tarun teja Kapisetti - 12.10.2023 13:42

del nums[2:5]
there you will get the answere

Ответить
Varada Kavya
Varada Kavya - 07.10.2023 17:38

Quiz question answer
Name.remove [95,14,12]

Ответить
kumaresan
kumaresan - 06.10.2023 04:59

We can delete the collection of values by using reomve
Remove=[94,14,12]
print(nums)
25,36,26

Ответить
Madhu Karampudi
Madhu Karampudi - 29.09.2023 08:42

del.nums[2:5] the ouput will be [25,36,26]

Ответить
Gowtham Chandmanikanta
Gowtham Chandmanikanta - 28.09.2023 10:16

Quiz ans: del nums[2:5]

Ответить
Shankar Gope
Shankar Gope - 25.09.2023 21:39

Learning and practicing the foundation concepts of python with utmost clarity👌All thanks to your teaching methods 🙏. The way you have delivered the lectures keeping the simplicity is really very much helpful. Love your teaching sir ❤

Ответить
MOHITH SARAN
MOHITH SARAN - 12.09.2023 18:32

Quiz ans: del nums[2:5]

Ответить
MSD Statois
MSD Statois - 07.09.2023 03:05

i did tup[1] = 33 and got the answer. maybe python got updated

Ответить
LASYA PRASAD
LASYA PRASAD - 03.09.2023 07:09

as tuple is immutable .Did anyone solved assignment question if s send me code I could'nt get that

Ответить
Rudra Pinjare
Rudra Pinjare - 31.08.2023 09:11

del nums [2:5]

Ответить
sumayya Shaik
sumayya Shaik - 24.08.2023 17:40

thank you so much sir. your every video is very understandable. we need professors like you. and so fortunate to have you sir. once again thank you so much sir thank you.

Ответить
Kota Bhargav sai
Kota Bhargav sai - 21.08.2023 16:02

Nums.remove[95,14,25]
Nums

Ответить
Prof Kpabila
Prof Kpabila - 14.08.2023 09:18

My Name is Abdul Rashid from Ghana. In fact, I am really enjoying the tutorial for the first five stages. I shall follow to the end.

Ответить
Jayanta Mondal
Jayanta Mondal - 13.08.2023 13:36

quiz answer:
del nums[2:5]

Ответить
Saimanikantha Sai
Saimanikantha Sai - 10.08.2023 18:33

del nums[2:5]

Ответить
Udit Kumar Agrahari
Udit Kumar Agrahari - 03.08.2023 19:01

output=del nums [2:5] ?/

Ответить
Experience the magic
Experience the magic - 02.08.2023 17:54

del (2:4)

Ответить
Aaqil Ezio
Aaqil Ezio - 01.08.2023 11:25

del nums [2:5]

Ответить
SUPRA CONSULTANTS (Mini Steel Project Consultants)
SUPRA CONSULTANTS (Mini Steel Project Consultants) - 28.07.2023 17:58

excellent

Ответить
RUYK jr
RUYK jr - 26.07.2023 16:02

del nums[2:]

Ответить
Harsha V Nair
Harsha V Nair - 18.07.2023 10:54

How to delete values (Quiz)
>>> nums = [25, 36, 95, 14, 12, 26]
>>> del nums [2:5]
>>> nums
Output : [25, 36, 26]

Ответить
Nikhil Sihare
Nikhil Sihare - 17.07.2023 16:22

quiz question ans = del (2:5)

Ответить
Awesome Aman
Awesome Aman - 15.07.2023 12:26

Sir in the description you have written that we can change value in the tuple so plzz change it ♥️

Ответить
Zeeshan Khan
Zeeshan Khan - 13.07.2023 16:10

Remove keyword is use to list item from list

Ответить
gebremedhin fitsum
gebremedhin fitsum - 12.07.2023 11:27

I hate programming .but your tutorial changed my idea.

Ответить
Samod Olakunle
Samod Olakunle - 10.07.2023 21:25

nums.remove (95)
>>> nums.remove (14)
>>> nums.remove (12)
>>> nums
[25, 36, 26]

Ответить
Preeti
Preeti - 09.07.2023 20:46

answer to the question
del nums[2:4]

Ответить
Varun Gupta
Varun Gupta - 09.07.2023 14:35

by using


del nums[2:5]

Ответить
Anton Bordøy Krohn
Anton Bordøy Krohn - 08.07.2023 12:46

When I typed s = {22,25,14,21,5} and enter than s and enter, I got this sequence {5, 21, 22, 25, 14} (in IDLE Shell 3.11.4) instead of {5, 14, 21, 22, 25} like you got. Also, when I typed s = {25,14,98,63,75,98} and enter than s and enter, I got this sequence {98, 25, 75, 14, 63}, instead of {98, 75, 14, 25, 63}. How come?

Ответить
hardik rawal
hardik rawal - 06.07.2023 21:47

s={23,23,23,23,434,3451,5343,}
set values work and it removes duplicates as well

{434, 3451, 23, 5343}

Ответить
kajal yaduvanshi
kajal yaduvanshi - 02.07.2023 18:35

sir we want c++ playlist too..

Ответить
Nagapurna Yinti
Nagapurna Yinti - 02.07.2023 04:51

Can I get notes

Ответить
J K Associates
J K Associates - 28.06.2023 09:43

sir, i am using python 3.11 the options after . are not showing even afterr using the recommended command

Ответить
Faiyaz Shaikh
Faiyaz Shaikh - 26.06.2023 11:22

>>> del nums [2:5] quiz answer

Ответить
Pratishtha
Pratishtha - 23.06.2023 16:47

del nums[2:5]

Ответить
Chandu Yadav
Chandu Yadav - 23.06.2023 13:37

Where can we find notes for this sir

Ответить
CET PREPRATORS
CET PREPRATORS - 20.06.2023 10:00

del nums[2:5]
nums
OUTPUT
[25,36,26]

Ответить