Dictionary Comprehension - Create Complex Data Structures Step by Step

Dictionary Comprehension - Create Complex Data Structures Step by Step

Python Simplified

1 год назад

86,223 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Katrina Bryce
Katrina Bryce - 07.08.2022 19:13

In the DNA example, to simplify the code, I would create a dictionary:
pair = {"A":"T", "C":"G", "G":"C", "T":"A"}
Then, instead of the nested if statements, do
dna = {key:[val, pair[val]] for (key, val) in enumerate(strand1)}

Ответить
peace
peace - 11.09.2023 15:08

Thanks a lot ! ❤❤. I was learned something from you. You are also better than my python profesor . U r taught something to me recent days . U r way speech and teaching is amazing itz easy to understand (but some topics are tough ) although u r videos are great 🥰

Ответить
Demand
Demand - 07.09.2023 23:50

Why are some of the passwords that are randomly generated more than 8 characters even though we used k=8?

Ответить
D. White
D. White - 17.08.2023 04:47

Why would you butcher my boy GandAlf like that?

Ответить
nolyab b
nolyab b - 03.08.2023 17:04

Super Enjoyed and Laughing !! 😀😀😀

Ответить
Siarhei Akhramenia
Siarhei Akhramenia - 13.07.2023 18:01

What about readability?
Your multiple if-else sequence should definitely be replaced with a function.
Why don't you mention it?
Not here, nor in the list comprehensions lesson.

Ответить
snowwelll school of technical science
snowwelll school of technical science - 06.07.2023 06:47

The tutorial code is not working forbidden 404 error

Ответить
Varun Kaniyala
Varun Kaniyala - 02.07.2023 06:56

I became mad after watching this video. But you are a great tutor. I became a fan of you. Love you and your English. Thank you so much🧐😵‍💫🤒. I request you to please start a complete python tutorial for beginners.

Ответить
ابو يوسف الحربي
ابو يوسف الحربي - 01.07.2023 16:58

A million thanks Maria, your explanation is very good

Ответить
khalid mohamed
khalid mohamed - 17.06.2023 19:34

well explained

Ответить
Danadasa Chan
Danadasa Chan - 28.05.2023 19:22

Thank you Mariya. I found this very helpful and easy to understand.

Ответить
stop_the_fraud
stop_the_fraud - 16.04.2023 01:21

..great job Mariya. )) Which university did you attend that you reference at times? Do you teach somewhere? Again thanks. )))

Ответить
DrCognitive
DrCognitive - 16.04.2023 00:13

Is that one of those AI bots talking? The voice and the mouth don't match and there's too much animated movement.

Ответить
Ismael Santana
Ismael Santana - 12.04.2023 21:23

Amo a esta mujer! Enseña muy bien!

Ответить
Adrian Rayon
Adrian Rayon - 03.04.2023 05:12

lists/dicts comprehension are constantly on that line where they are either great and easy to make and read or just long and ugly and make it harder to read so sometimes they are great, but sometimes it´s just better to do normal for loops

Ответить
Taylor McCoy
Taylor McCoy - 29.03.2023 20:01

I think it would probably be faster to use the zip method. Two primary reasons, one being that with the range approach you have to check the list on each iteration, and two being since the zip function was probably programmed to do this efficiently it has a different method of accessing the objects. Just my guess!

Ответить
dogus tabiyat
dogus tabiyat - 28.03.2023 19:41

Very Useful Thanks!

Ответить
Vlad_Sunny Comp
Vlad_Sunny Comp - 26.03.2023 20:09

Hi, Sunshine ! 🌞😉👌
Very good !

Ответить
KieuTrung Tran
KieuTrung Tran - 25.03.2023 15:21

You are a great teacher. Smart and beautiful

Ответить
branded kamina
branded kamina - 24.03.2023 09:33

is it good to doing 1 year diploma in python programming

Ответить
branded kamina
branded kamina - 24.03.2023 09:33

hello ma'am how are you are you here we got no any video python tutorial from many months

Ответить
Garden Isle Divers
Garden Isle Divers - 14.03.2023 09:19

Too many ads!!! Your video is good but give us a break.

Ответить
sudhansumtripathy
sudhansumtripathy - 28.02.2023 17:58

really got stuck how we can put multiple values in the value ie [ value, if statemen], if you could further elaborate

Ответить
fitzkro
fitzkro - 17.02.2023 21:30

You should have used "secrets" instead of "random"!!!!

Ответить
SUMIT DUTTA
SUMIT DUTTA - 17.02.2023 11:53

Thanks 😊

Ответить
caio vieira
caio vieira - 12.02.2023 02:27

Uau! Amazing!

Ответить
Parshu Ram
Parshu Ram - 09.02.2023 13:37

angel reply me atleast once

Ответить
Bejin
Bejin - 31.01.2023 11:31

your all videos are very very useful 👍

Ответить
Mohit Kumar
Mohit Kumar - 30.01.2023 19:45

Is really your voice I am just start your python tutorial and is help me to understand it. But your voice is like a bot or more likely robot

Rest I am confused with python becut practice with csv or xlsx file .
I can't use set or dictionary function
Can you help me with it

Ответить
David Pimental
David Pimental - 27.01.2023 00:31

Mariya, you can turn the password generator into a function call. And I also added a UID function as well. Great tutorial though. Thanks so much!

Ответить
MacDean Jack
MacDean Jack - 16.01.2023 15:21

I feel the comprehension with the range function is faster🙃🙃.. cos range functions has less work load to perform than the Zip method.🤔

Ответить
Nayan JADHAV
Nayan JADHAV - 14.01.2023 08:29

Wonderful video.

Ответить
Jefferson Brunheira
Jefferson Brunheira - 12.01.2023 20:21

Thanks a lot! This content is very important for advanced python learn. 😃

Ответить
Isaac Aso
Isaac Aso - 11.01.2023 05:51

This is great. Thanks.

Ответить
Matt Martella
Matt Martella - 08.01.2023 05:05

I'm a Mariya simp :) :) lol your videos are an excellent supplement to my college courses! Thank you for all your hard work!

Ответить
Juan Jimenez
Juan Jimenez - 04.01.2023 23:06

You are such a skilled teacher! Thank you

Ответить
Hasan BaAqeil
Hasan BaAqeil - 02.01.2023 03:03

beautiful... thanks.. .. I like your extra efforts to make these videos enjoyable with nice editing and awsome graphics

Ответить
Abdul Shkoor
Abdul Shkoor - 26.12.2022 22:36

please more video ...❤❤❤❤❤

Ответить
jfm jaco
jfm jaco - 15.12.2022 02:53

Would be nice to see entire command on one screen , racing through bits and pieces does not teach anything

Ответить
androidfreak88
androidfreak88 - 05.12.2022 17:55

😍

Ответить
Jeux Mathinfo
Jeux Mathinfo - 05.12.2022 13:01

Very useful ! 🏆🏆🏆🏅🏅🏅Thank you very much !!! 🙏🤗

Ответить
sachin deshpande
sachin deshpande - 03.12.2022 15:04

First time it was overwhelming for me, but second time it was fun and I could understand it 100%. I need to implement this in real project before I forget it, Thanks a lot.

Ответить
Punda Man
Punda Man - 01.12.2022 05:41

Who's song is playing on the background.
It's nice

Ответить
hungover
hungover - 28.11.2022 20:21

Being beings with a mind that thinks logically, rationally, and causally, does it not seem that this highly accurate DNA is impossible to come by pure randomness and coincidence?

Ответить
Jong Cheul Kim
Jong Cheul Kim - 12.11.2022 17:00

Thank you^^ This is very helpful.

Ответить
robert
robert - 11.11.2022 10:19

my_dict = dict(zip(names, prof))

Ответить
Igbuku-Otu Kofi Nyro
Igbuku-Otu Kofi Nyro - 04.11.2022 00:28

Hello this tutorial is excellent, do you have a python beginner course?

Ответить
plurisdesign
plurisdesign - 27.10.2022 00:27

Best tutorial ever

Ответить