GRACE COE-CSE-GE3171-Problem Solving and Python Programming Laboratory-Ex5b(ii)- Implementing real-time/technical applications Components of an automobile using Dictionaries
This video shows how to write a python program to implement real-time/technical applications Components of an automobile using Dictionaries
PROGRAM:
components = {"Brake": 2,"Tyre": 4,"Steering": 1}
print(components)
x = components.copy()
print(x)
x = components.get("Tyre")
print(x)
x = components.items()
print(x)
components.update({"color": "White"})
print(components)
x = components.pop("Brake")
print(x)
print(components)
x = components.setdefault("Brake", "Tyre")
print(x)
print(components)
x = components.values()
print(x)
y = 1
thisdict = dict.fromkeys(components, y)
print(thisdict)
x = components.keys()
print(x)
components.clear()
print(components)
On this page of the site you can watch the video online GRACE COE-CSE-GE3171-Problem Solving and Python Programming Laboratory-Ex5b(ii) with a duration of hours minute second in good quality, which was uploaded by the user GRACE COLLEGE OF ENGINEERING 16 March 2022, share the link with friends and acquaintances, this video has already been watched 400 times on youtube and it was liked by 1 viewers. Enjoy your viewing!