Комментарии:
Thank navin
Ответить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?
Ответить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 !
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.
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
but I can change the tuple values in here, how ????
Yeah I put a space as "tup [1] = 33"
nums=[25,36,95,14,12,26]
del nums[2:5]
print(nums)
I'm really enjoying your classes, more grease to your elbow
Ответитьdel numb [2:4]
Ответитьi think in the new update they made it so tup could be changed
cause it did for mine
Where is the quiz? 😮
Ответитьdel nums[2:5]
there you will get the answere
Quiz question answer
Name.remove [95,14,12]
We can delete the collection of values by using reomve
Remove=[94,14,12]
print(nums)
25,36,26
del.nums[2:5] the ouput will be [25,36,26]
ОтветитьQuiz ans: del nums[2:5]
Ответить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 ❤
ОтветитьQuiz ans: del nums[2:5]
Ответитьi did tup[1] = 33 and got the answer. maybe python got updated
Ответитьas tuple is immutable .Did anyone solved assignment question if s send me code I could'nt get that
Ответитьdel nums [2:5]
Ответить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.
ОтветитьNums.remove[95,14,25]
Nums
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.
Ответитьquiz answer:
del nums[2:5]
del nums[2:5]
Ответитьoutput=del nums [2:5] ?/
Ответитьdel (2:4)
Ответитьdel nums [2:5]
Ответитьexcellent
Ответитьdel nums[2:]
ОтветитьHow to delete values (Quiz)
>>> nums = [25, 36, 95, 14, 12, 26]
>>> del nums [2:5]
>>> nums
Output : [25, 36, 26]
quiz question ans = del (2:5)
ОтветитьSir in the description you have written that we can change value in the tuple so plzz change it ♥️
ОтветитьRemove keyword is use to list item from list
ОтветитьI hate programming .but your tutorial changed my idea.
Ответитьnums.remove (95)
>>> nums.remove (14)
>>> nums.remove (12)
>>> nums
[25, 36, 26]
answer to the question
del nums[2:4]
by using
del nums[2:5]
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?
Ответитьs={23,23,23,23,434,3451,5343,}
set values work and it removes duplicates as well
{434, 3451, 23, 5343}
sir we want c++ playlist too..
ОтветитьCan I get notes
Ответитьsir, i am using python 3.11 the options after . are not showing even afterr using the recommended command
Ответить>>> del nums [2:5] quiz answer
Ответитьdel nums[2:5]
ОтветитьWhere can we find notes for this sir
Ответитьdel nums[2:5]
nums
OUTPUT
[25,36,26]