Category: python_courses


Tuple without parentheses , Tuple unpacking , list inside tuple Python Tuple without parentheses  A tuple is a collection that is ordered and is immutable. Python are written in tuples with round brackets. Python tuple are used in python tuple Read more…


While Loop and tuple in Python | find type of element and tuple with one element Tuple in python : Tuple is a collection of Python objects separated by a comma. In some instances a tuple indexing is similar to Read more…


About Tuple in Python with examples | For loop and tuple | count , index len function slicing | Nested lists are obtained using nested indexing In this article, you will learn all about Python tuples. More specifically, what are Read more…


fromkeys method | copy method | clear method | get method in dictionary | python fromkeys method in Python The fromkeys () method creates a new dictionary from a given sequence of elements with a  value provided by the user. Read more…


Python Dictionary | update method in python  Dict in Python_ is an unordered collection of data values, used to store data values like a map, which unlike other Data Types that hold only single value as an element, Dict.. holds Read more…


Python dictionary | add data, pop, popitem, update method Python dictionary | add data, pop, popitem, update method Each key is separated by a colon (:) from its value, items are separated by commas, and the whole thing is enclosed Read more…


Python Dictionary | Items method | Definition and usage Definition and usage The item () method returns a visible object. The visual object contains the dictionary’s key-value pairs, such as tuples in a list. The visual object will reflect any Read more…


Python | value method and keys method value method The values() method returns a view object that displays a list of all the values in the dictionary. user_info_value = user_info.values()   user_info_value=user_info.values()user_info_value = user_info.values() print(user_info_value  # OutPut = dict_values([‘pramod’, 22,’17691a05b9′,‘B-Tech’])   Python dictionary value () Read more…


 Python iterate dict and python loop through dictionary Python iterate dict and python loop through dictionary Each key is separated by a colon (:) from its value, items are separated by commas, and the whole thing is enclosed in a Read more…


Python Dictionary | check key and value exist or not if ‘name’ in user_info2: print(“prensent”) else: print(“not present”) Check value is exist in pyhton dictionary —–> value method if 22 in user1.values(): print(‘exis’) else: print(‘not exist’ Python Addition of total Read more…

Categories