Python How to Program Pt 4

preview_player
Показать описание
Here I explain Python Tuples, Lists, Dictionarys, While Loops, For Loops, If Statements and more.

Рекомендации по теме
Комментарии
Автор

Sorry about that. I need to actually redo these tutorials. I'm better at making tutorials now. I'm very happy that you enjoy the videos :)

derekbanas
Автор

You're very welcome :) I think this is what you are looking for

name = input("What is your name: ")
removeName = input('Remove a name: ')
newName = name.replace(removeName, "")
print(newName)

derekbanas
Автор

The best way to learn this stuff is to print out the code from my site and then take any notes as you watch the video. If something doesn't make sense as you go through feel free to ask any questions and I'll do my best to clear everything up. Keep at it and you'll eventually have an A-ha moment and it will all fall into place

derekbanas
Автор

Yes, that's what I was looking for exactly.
You did it way easy less complicated than I was doing it.
Thank you so much for everything, Derek.

rodrigueskorn
Автор

They are similar, but tuples are immutable which means you cannot update them or change values

derekbanas
Автор

@TheBlueBear1337 Thank you very much :) I do my best

derekbanas
Автор

@SpruzoEntertainment Thank you :) I'm glad you liked it

derekbanas
Автор

you are really good at explaining. The most programmers ont youtube and even teachers make it sound way to hard... great work!

TheBlueBear
Автор

First off love the videos, as some body who has primarily programmed in C and COBOL over the years, it's a life saver to find easy guides to pre-defined data structures not found in the above languages, so thanks!

That being said;

Immutable == Not able to change
Mutable == Able to change

Glad you brought the lower level stuff into account, but that being said most people associate the textbook definition of those in the English dictionary, especially those whose first language are not English(I.E: myself). I'm pretty sure I'm just being a stickler, but nonetheless you almost had me confused for a moment there.

Perhaps explaining why they need a new place in memory would help folks understand a little better as to why it needs a new address.

alleycat
Автор

where you live and state you live in, you trust us a lot. Not complaining though love the videos but I wished you spent more time on the mutable and immutable lists but it's okay I understood it later. Thank you.

tamquen
Автор

I sent the message to your forum page on YouTube because I couldn't print it here. i hope that helps

derekbanas
Автор

32 bit? Awesome series. Thank you for uploading!

AndrewWeit
Автор

First of all thank you Derek for all your videos, they're helpfull, all because your way of teaching is clear.
Hey Derek can you help me on this, ex.:

names = raw_input('Enter many names you want: ')
names = names.split()
array = [names]

removeName = raw_input('Remove a name: ')

# Err
index = array.index(removeName)
print array.remove(array[index])

As you can see I was tryin to remove a word from the string, ex.: >>> bread coffee cookie
>> removed - coffee

How would I do this right?
Thx1mt.

rodrigueskorn
Автор

Great tutorials, using them as help when instructing my boys....I did have a issue with tupleEX though....I get an error that says tupleEX is not defined....must have missed a step? or is this a function I need to import?...keep up the great work

alandavidclark
Автор

Thank you for these tutorials.  God send.

korisx
Автор

sir I got a doubt in mutabla list
actually there u just append but not overwrite
in case of immutabla u assigned the values just like overwrite
I didn't get correct meaning for mutable and immutable

sir I really what to thank you a lot
I am following all ur video
learn so much
your explanation so good

indrajagadeesh
Автор

is there any sorting function to extract only the unique value in a list?

sanupanji
Автор

reckon I can make you a suit now Derek XD

mollywinter
Автор

Hey Derek what would i type to print even numbers?

Pablo_YS
Автор

Mind = Blown
if mind == Blown
print ""Awesome"

gent