Cricket Score Tuple in Python | Tuple In Python | tuple is immutable | #shorts #python #ytshorts

preview_player
Показать описание
Tuple in Python
Given a list of tuples -

Every tuple consist of batsman's name and runs

[("V Kohli", 100),("R Sharma", 80),("R Pant",27),("P Shaw", 34)]

a) Calculate total score

b) Create a list of batsman who scored more than 50

comprehension method
for loop in python
cricket total score and find whose run above 50

A tuple is immutable in nature.

It is capable of consuming less memory.

The tuple iteration is less time-consuming. It is comparatively much faster than a list.

These have comparatively lesser built-in methods in them.

It is comparatively helpful in the case of read-only operations, such as accessing elements.

Any such thing is hard to take place in a tuple. The tuple operations are very safe and not very error-prone.

new video for python programming
python code for problem solving approach.
- python for beginners
- learn python in simple way.
- first clear basic concepts.
- solve more problems and consistent practice.

for loop in Python Program
python programming for beginners
python programming examples
Tuple in python
python for loop
learn python

#shorts #ytshorts #python # pythoncode #education #tutorial

Рекомендации по теме
join shbcf.ru