Uploaded June 2020 | Updated September 2026, 2 weeks ago
Python tutorial on tuples vs generator expressions.
We find out why there's no tuple expression, and learn how to create tuples with any type of comprehension (list comprehensions, generator expressions, etc). Learn more about python tuples, python tuple syntax, and how tuple iterables work.
ββThis video is part of a SERIES. Check out the other videos below ββ
π» Python List Comprehensions Course Playlist:
youtube.com/playlist?list=PL4eU-_ytIUt8oN3Mqp1reD8_xeVNMn0EW
π» Python Interview Questions Playlist:
youtube.com/playlist?list=PL4eU-_ytIUt_VBIZsfIIO4_3cFfozRoPg
π The complete Udemy course on Python Built-in Functions:
udemy.com/course/the-python-built-in-function-tutorial-series
Python tuple() built-in function - youtube.com/watch?v=5pn7EyKTpfA
Python list() built-in function - youtube.com/watch?v=s0agjJebJAw
Python Interview Questions Playlist - youtube.com/playlist?list=PL4eU-_ytIUt_VBIZsfIIO4_3cFfozRoPg
Python List Comprehensions Playlist - youtube.com/watch?v=hNW6Tbp59HQ&list=PL4eU-_ytIUt8oN3Mqp1reD8_xeVNMn0EW
βοΈ Recommended Computer Gear:
- Macbook Pro 13" amzn.to/39ZGrTb
- Macbook screen protector amzn.to/3s2a9x3
- Macbook USB-C adapter amzn.to/3dRICtd
- Macbook case amzn.to/3wMJhVk
- Foldable computer stand amzn.to/2QeCi76
- Airpods amzn.to/324gPAs
- Pixel 3a amzn.to/2PJa1Wr
- Pixel 3a screen protector amzn.to/3mytvcf
- Lapel Mic amzn.to/39Vf2lx
- Bluelight computer glasses amzn.to/3dSCIId
- Noise cancelling headphones amzn.to/2QhAR80
- JBL bluetooth speaker amzn.to/3dVfLEv
βοΈ Recommended Digital Nomad Gear:
- Shorts with zippers amzn.to/3wHEepf
- Silicone earplugs amzn.to/3wSSzQ3
- Sleep mask amzn.to/3d6AUw5
- Packing cubes amzn.to/3uCbaOc
- Sink plug amzn.to/2QeiSzf
- Travel lock amzn.to/3t2Zsf4
- Nike sandals amzn.to/3d65FRV
- Nike freeruns amzn.to/3fZRWhi
- Thin no-show socks amzn.to/39Wa8og
- Quest bars amzn.to/3s8eWxd
- Incense amzn.to/3dPfEKF
- Electronics organizer bag amzn.to/3tbn3KO
Python tutorial on tuples vs generator expressions.
We find out why there's no tuple expression, and learn how to create tuples with any type of comprehension (list comprehensions, generator expressions, etc). Learn more about python tuples, python tuple syntax, and how tuple iterables work.
ββThis video is part of a SERIES. Check out the other videos below ββ
π» Python List Comprehensions Course Playlist:
youtube.com/playlist?list=PL4eU-_ytIUt8oN3Mqp1reD8_xeVNMn0EW
π» Python Interview Questions Playlist:
youtube.com/playlist?list=PL4eU-_ytIUt_VBIZsfIIO4_3cFfozRoPg
π The complete Udemy course on Python Built-in Functions:
udemy.com/course/the-python-built-in-function-tutorial-series
Python tuple() built-in function - youtube.com/watch?v=5pn7EyKTpfA
Python list() built-in function - youtube.com/watch?v=s0agjJebJAw
Python Interview Questions Playlist - youtube.com/playlist?list=PL4eU-_ytIUt_VBIZsfIIO4_3cFfozRoPg
Python List Comprehensions Playlist - youtube.com/watch?v=hNW6Tbp59HQ&list=PL4eU-_ytIUt8oN3Mqp1reD8_xeVNMn0EW
βοΈ Recommended Computer Gear:
- Macbook Pro 13" amzn.to/39ZGrTb
- Macbook screen protector amzn.to/3s2a9x3
- Macbook USB-C adapter amzn.to/3dRICtd
- Macbook case amzn.to/3wMJhVk
- Foldable computer stand amzn.to/2QeCi76
- Airpods amzn.to/324gPAs
- Pixel 3a amzn.to/2PJa1Wr
- Pixel 3a screen protector amzn.to/3mytvcf
- Lapel Mic amzn.to/39Vf2lx
- Bluelight computer glasses amzn.to/3dSCIId
- Noise cancelling headphones amzn.to/2QhAR80
- JBL bluetooth speaker amzn.to/3dVfLEv
βοΈ Recommended Digital Nomad Gear:
- Shorts with zippers amzn.to/3wHEepf
- Silicone earplugs amzn.to/3wSSzQ3
- Sleep mask amzn.to/3d6AUw5
- Packing cubes amzn.to/3uCbaOc
- Sink plug amzn.to/2QeiSzf
- Travel lock amzn.to/3t2Zsf4
- Nike sandals amzn.to/3d65FRV
- Nike freeruns amzn.to/3fZRWhi
- Thin no-show socks amzn.to/39Wa8og
- Quest bars amzn.to/3s8eWxd
- Incense amzn.to/3dPfEKF
- Electronics organizer bag amzn.to/3tbn3KO










![CodingBat max_end3 answer - Python List 1
CodingBat max_end3 answer - Python List 1
CodingBat Python List-1 max_end3 answer.
Timestamps:
0:00-0:09 Intro
0:10-0:22 The Question
0:23-0:53 Analyze Question
0:54-1:43 How to Use max() Built-In Function
1:44-2:24 Building First Solution
2:25-2:40 First Solution with max()
2:41-4:00 Second Solution with max()
4:01-4:33 Third Solution with max()
4:34 -6:14 First Solution without max()
6:15 Final Solution without max()
max_end3 Question:
Given an array of ints length 3, figure out which is larger, the first or last element in the array, and set all the other elements to be that value. Return the changed array.
max_end3([1, 2, 3]) β [3, 3, 3]
max_end3([11, 5, 9]) β [11, 11, 11]
max_end3([2, 11, 3]) β [3, 3, 3]
π» max_end3 - link to original question on CodingBat.com:
https://codingbat.com/prob/p135290
π» Python String Methods Course Playlist:
https://www.youtube.com/playlist?list=PL4eU ytIUt8Qa-90WL9LKTp8_4fvk6eS
π» Python List Methods Course Playlist:
https://www.youtube.com/playlist?list=PL4eU ytIUt9vwky84Lp-5pK4ckzKbnTo
π Please check out my Udemy course here:
https://www.udemy.com/course/the-python-built-in-function-tutorial-series/
βοΈ Recommended Computer Gear:
- Macbook Pro 13 https://amzn.to/39ZGrTb
- Macbook screen protector https://amzn.to/3s2a9x3
- Macbook USB-C adapter https://amzn.to/3dRICtd
- Macbook case https://amzn.to/3wMJhVk
- Foldable computer stand https://amzn.to/2QeCi76
- Airpods https://amzn.to/324gPAs
- Pixel 3a https://amzn.to/2PJa1Wr
- Pixel 3a screen protector https://amzn.to/3mytvcf
- Lapel Mic https://amzn.to/39Vf2lx
- Bluelight computer glasses https://amzn.to/3dSCIId
- Noise cancelling headphones https://amzn.to/2QhAR80
- JBL bluetooth speaker https://amzn.to/3dVfLEv
βοΈ Recommended Digital Nomad Gear:
- Shorts with zippers https://amzn.to/3wHEepf
- Silicone earplugs https://amzn.to/3wSSzQ3
- Sleep mask https://amzn.to/3d6AUw5
- Packing cubes https://amzn.to/3uCbaOc
- Sink plug https://amzn.to/2QeiSzf
- Travel lock https://amzn.to/3t2Zsf4
- Nike sandals https://amzn.to/3d65FRV
- Nike freeruns https://amzn.to/3fZRWhi
- Thin no-show socks https://amzn.to/39Wa8og
- Quest bars https://amzn.to/3s8eWxd
- Incense https://amzn.to/3dPfEKF
- Electronics organizer bag https://amzn.to/3tbn3KO CodingBat max_end3 answer - Python List 1](https://i.ytimg.com/vi/yP-B_k9xdWE/mqdefault.jpg)