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
instagram: / mangeshbagul15
On this page of the site you can watch the video online Cricket Score Tuple in Python | Tuple In Python | tuple is immutable | with a duration of online in good quality, which was uploaded by the user Mangesh Bagul 02 February 2022, share the link with friends and acquaintances, this video has already been watched 915 times on youtube and it was liked by 38 viewers. Enjoy your viewing!