Intermediate Python Tutorial #3 - Map() Function

preview_player
Показать описание
Welcome to a new series! Intermediate Python Tutorials!

Today's Topic: map() function, this function takes two arguments: a function and a list. It then applies the function to all of the values of the list of and creates a new values with the returned values from thew function.

In this set of videos I will be explaining more advanced programming concepts and showing you intermediate-advanced tools that you can use in python. A lot of these tools will help you to solve problems/code more efficiently and will save you a ton of time!

Future topics:
4. Filter Function
5. Lambda Functions
6. Intro to Collections
7. Collections: named tuple
8. Collections: deque
9. Collections: orderedDict
10. Collections: defualtDict
11. docstrings

Want To Support This Channel?
Bitcoin: 1PbkAYLFaJBgjbKn2ptGyBz65xWN8hJgBU
Ethereum: 0xdd42dbbdba60f7163fc7a840e189474b6e8bfcad
Ripple: rD4arM9CVjQWqi8f1kxdpCgkCgEkqBgtud

Please leave a LIKE and SUBSCRIBE for more content!

Tags:
- Tech
- Tech With Tim
- Crypto
- Programming
- Coding
- Pygame
- Python Tutorials
- Intermidiate Python Tutorials
- map function in python
- learn to code
- map()
- how to use map() python
- how to use map()
Рекомендации по теме
Комментарии
Автор

awesome, finally someone who can explain quickly and easily

Haluna
Автор

thnx you, , , i was looking for something like this since the majority of videos are focucing in teaching the basics.

konstantinosmaravegias
Автор

The map() explanation with the if statement is just so useful. Thx man

bryanttayou
Автор

I required this for competitive programming

shiraku
Автор

Great video and explanation! it's really sad for me that your channel is so small. your content is good and the upload rate is high!

tomershechner
Автор

Also the map function is magnitudes faster than the for loop. probably the more important reason to be using it instead of a loop

adrianmh
Автор

No one needs to tell you how good your channel is. The amount of dislikes you got on this video already shows everyone likes you. Good job buddy.

bepispoggoloco
Автор

if you want for exampe to grab the element that are a string from an array I think it is better to use the filter function
because it returns the array with the elements that are a string BUT with the map function it returns an array with true and false only

QuantumVortex
Автор

Your Channel is Great!
Good explanations skills!
You deserve an audience.
Have you optimized your content for youtube search?

Shahzaibik
Автор

Which one runs faster? List comprehension or map function?

Skaxarrat
Автор

Great short explanation. One thing, when you say map takes in two parameters, function and a list, do you mean only a list and not any other iterables such as tuples, sets, generators, etc. ?

charly
Автор

seems that using list comprehensions will be simpler if u want to get a list

freedempire
Автор

Question: Shadows name 'x' from outer scope

joeywen
Автор

li = [x**x for x in range(1, 11)]
print(li) also works

urjitchakraborty
Автор

hey! thank you for the videos!!! I am also going through corresponding notes on your site and have a question. " numList.append(f1(nums))" should't it be " newList.append(f1(item))" otherwise it doesn't work

tedesca
Автор

print(list(map(func.li)))

Does it means new list = the expression of the func2

wongkingshun
Автор

It seems that the map function can't be used on numpy arrays, right?

domillima
Автор

How did 3 become 27 when it was applied to the function? 2:52

ezraakran
Автор

i have a doubt when i use list word in map function in jupyter notebook output is coming that list is not capable. is there any reason for it?

eshwar
Автор

So you mean every single thing is possible in python?

Sciencedoneright