GRACE COE-CSE-GE3171-Problem Solving and Python Programming Laboratory-Ex5b(ii)

Veröffentlicht am: 16 März 2022
auf dem Kanal: GRACE COLLEGE OF ENGINEERING
400
1

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)


Auf dieser Seite können Sie das Online-Video GRACE COE-CSE-GE3171-Problem Solving and Python Programming Laboratory-Ex5b(ii) mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer GRACE COLLEGE OF ENGINEERING 16 März 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 400 Mal angesehen und es wurde von 1 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!