Комментарии:
Update is used to add one or more items in the existing dictionary
ОтветитьCan you explain why a.sort() returns None for a list a, but a.values() doesn't return None if a is a dictionary. Both dictionaries and lists are mutable (and if mutable, are modified in place, right?). So why is a method such as sort on a list void whereas a method on a dictionary not void (and can be assigned to another variable, printed etc). Any help would be great because right now I have no clear appreciation between mutability, modifying in place and returning None . Thanks
ОтветитьThank you very much sir🙏🙏🙏🙏
ОтветитьIs Methods and Functions are same in python dictionary.. Or different? If different then what are the functions of dictionary? Sir please Rply
ОтветитьNice
Ответитьtq brother for sharing valuable content
Ответитьanna tell me eexample of items
ОтветитьThanku for teaching soo perfectly sir, please keep making videos of more of topics of CS..
ОтветитьSuperb teaching
Ответитьthanks for your video. python has become easy to understand after watching your video.
ОтветитьU r very good sir👌👌👌
ОтветитьThank u so much sir
ОтветитьSir your teaching nice
ОтветитьSuper ji
ОтветитьSir ad aayi apke video me 👏👏🤘
ОтветитьWhat a lame method, Sir you could have shared your screen and teach with live example.
ОтветитьThankyuo sir wonderful explaination
d={'name': 'nirvaan', 'rno': 1, 'branch': 'doct'}
d.setdefault('rno':3)
print(d)
iam getting error below please explain me
File "<ipython-input-62-34d3f748ff79>", line 1
d.setdefault('rno':3)
^
SyntaxError: invalid syntax
Hello sir , in dictionary how to get user input to access value by typing keyword please? Can u help me out
for eg : when i type 1(key) it should show value stored at it in o/p sreeen , not to type in program window
also key and value is user input
In dict can call keys
But elements or values can't call tat?
super brother.
Ответитьsir can you explain how to find out the word frequency in a string using for loops
Ответитьcan you tell what is wring in my following code : want to access certain key values from a json file (in dictionary format) and store it to a variable.
if rain:
key_values=[[data['state'] for data in response.json['records']['data'] if 'state' in data and str(data ['rainyDate']).lower()== str(rain).lower()]
Sr i want full course of python plz help me sr my humble request
ОтветитьSir pls upload python tutorials
ОтветитьSir according to you which is better for future
CSE OR ECE.
PLEASE HELP
Nice..
Ответить