Can you guys help me with something please? I'm trying to make simple guessing game, the player has to guess what number I'm think of, if they're right it prints out "Well done" but if they're wrong I want it to loop back to the ___player = raw_input("What number am I thinking of?")____ so the player can enter another attempt.
How does python understands the ending line of 'if' statement or 'else' statement since no brackets or no semicolons or anything at all is there tell python to stop reading the statement?? maybe the tab is this mark?
@Brucy6666 Actually, if you look at it this way it'd be much easier:
Whenever he wrote one=..., two=... (These two are pointing to two different places in the memory, they stored 3 spots for 3 numbers [22,23,24] it could be in 1, and in 2 [24,27,55] even but when he did Three=Four=[bla,bla,bla] he basically made Three & Four point to the same list, both of them are pointers of this list. (Pointers are something which redirects you to where the thing is found in the memory so 3&4 point the same)
Actually, if you look at it this way it'd be much easier:
Whenever he wrote one = ... , two = ... (These two are pointing to two different places in the memory, they stored 3 spots for 3 numbers, [22,23,24], it could be in 1 and in two [24,27,5555] even, but when he did Three=Four=[bla,bla,bla] he basically made Three & Four point to the same list, both of them are pointers of this list. (Pointers are something which redirects you to where the thing is found in the memory so 3&4 point the same)
@Brucy6666 In the first case, you have created two objects that COINCIDENTALLY have the same list. This makes them equivalent in terms of their lists, but not the objects themselves. The object "one" will only be the object "two" if you explicitly tell Python that one = two. If they (as variables) are defined in separate statements, they are not considered equivalent objects. In the second case, three and four are defined in the same statement, so three is four would be true.
@MCSubdued but i still don't get it for example,let one=1 two=1 one is two true ***but one=[1] two=[1] one is two false ********** so, what's going one here?
@Brucy6666 Actually, if you look at it this way it'd be much easier:
Whenever he wrote one=..., two=... (These two are pointing to two different places in the memory, they stored 3 spots for 3 numbers [22,23,24] it could be in 1, and in 2 [24,27,55] even but when he did Three=Four=[bla,bla,bla] he basically made Three & Four point to the same list, both of them are pointers of this list. (Pointers are something which redirects you to where the thing is found in the memory so 3&4 point the same)
@Brucy6666 three CANNOT be four, so cannot one be two(even if they have same numbers like one[23,24,25]and two[23,24,25] the variable(or number, you choose)is different
I don't know why people go through this trouble. They only deserve to be appreciated and praised for the trouble they went through even if their work is not perfect which I believe this not the case. This is awesome work, and all your tutorials.
@boogiboy3d yeah dude totally rocks. I'm tracking through two dummy books and these tut's have made it all come together. I guess to it's all about practice practice but you can't beat these and they are FUN!
ya pretty much. :P. I learned a bit of c++ and i know Visual Basic 2008 so python is really easy to learn. But i bet it would be a bit hard if people didn't have any former knowledge of programming
Can you guys help me with something please? I'm trying to make simple guessing game, the player has to guess what number I'm think of, if they're right it prints out "Well done" but if they're wrong I want it to loop back to the ___player = raw_input("What number am I thinking of?")____ so the player can enter another attempt.
Ashitaka255 1 month ago
@Ashitaka255 You could try a while loop such as While guess != answer: (programming here)
allymac1009 1 month ago in playlist Python Programming Tutorials
"one is two" is true in python3.2
acheirs 2 months ago in playlist Python Programming Tutorials
This has been flagged as spam show
this guy is so flippin awesome
THANK YOUUU :)
sanfranPinkFloydfan 2 months ago
"one is two" false because "one" and "two" are not the same variable or objet.
AlephAriadiate 3 months ago
This has been flagged as spam show
U my friend are awesome
MODx911 4 months ago
everytime i think im nearly finished i see i have 10 more in the side bar ....
FangsShadow 4 months ago
the 2 dislikes are people who charge $100 dollars and make worse tutorials
Mak3UShyPL 6 months ago 4
I already knew like 17/23 of these tuts i watched so far, yet I watched them :P
phroggyy 7 months ago in playlist Python tutorials 4
How does python understands the ending line of 'if' statement or 'else' statement since no brackets or no semicolons or anything at all is there tell python to stop reading the statement?? maybe the tab is this mark?
kota1102 9 months ago
in 23 tutorial I have learnd more than in the whole year that my profesor has been tecing it to me,bucky you rock,proffesor sucks...
taliman007 11 months ago
This has been flagged as spam show
@Brucy6666 Actually, if you look at it this way it'd be much easier:
Whenever he wrote one=..., two=... (These two are pointing to two different places in the memory, they stored 3 spots for 3 numbers [22,23,24] it could be in 1, and in 2 [24,27,55] even but when he did Three=Four=[bla,bla,bla] he basically made Three & Four point to the same list, both of them are pointers of this list. (Pointers are something which redirects you to where the thing is found in the memory so 3&4 point the same)
SSweetAngel 11 months ago
Actually, if you look at it this way it'd be much easier:
Whenever he wrote one = ... , two = ... (These two are pointing to two different places in the memory, they stored 3 spots for 3 numbers, [22,23,24], it could be in 1 and in two [24,27,5555] even, but when he did Three=Four=[bla,bla,bla] he basically made Three & Four point to the same list, both of them are pointers of this list. (Pointers are something which redirects you to where the thing is found in the memory so 3&4 point the same)
SSweetAngel 11 months ago
that makes no sense.....
one = [21,22,23]
two = [21,22,23]
and one is two is false...
if you have
three = four = [3,4,5]
and three is four is False...
if one and two are the same then
one = two = [21,22,23]
its the same expression, i don't get it.... :/
Brucy6666 1 year ago
This has been flagged as spam show
@Brucy6666 they are equal but they are not the same objects
atomicpantz 1 year ago
@Brucy6666 In the first case, you have created two objects that COINCIDENTALLY have the same list. This makes them equivalent in terms of their lists, but not the objects themselves. The object "one" will only be the object "two" if you explicitly tell Python that one = two. If they (as variables) are defined in separate statements, they are not considered equivalent objects. In the second case, three and four are defined in the same statement, so three is four would be true.
MCSubdued 1 year ago
dgecon1 9 months ago
@dgecon1 its because the is statement evaluates the variable names as well, which in your case are different
tyinykiller5 8 months ago
This has been flagged as spam show
@Brucy6666 Actually, if you look at it this way it'd be much easier:
Whenever he wrote one=..., two=... (These two are pointing to two different places in the memory, they stored 3 spots for 3 numbers [22,23,24] it could be in 1, and in 2 [24,27,55] even but when he did Three=Four=[bla,bla,bla] he basically made Three & Four point to the same list, both of them are pointers of this list. (Pointers are something which redirects you to where the thing is found in the memory so 3&4 point the same)
SSweetAngel 11 months ago
@Brucy6666 three CANNOT be four, so cannot one be two(even if they have same numbers like one[23,24,25]and two[23,24,25] the variable(or number, you choose)is different
Starcraft2Rogue 10 months ago
I'm so glad I found you, Bucky.
PlasticPackage 1 year ago
I cannot believe I tryed to learn C++ and didnt know this existed.
xero907 1 year ago 4
It might also be worth mentioning that case matters: Y!=y for "in" statements and others.
porky130 1 year ago
PEE IN PIZZA only if it's a very bad pizza!
hydrogenix 1 year ago
Is there PEE in pizza? XD
hydrogenix 1 year ago
two peaple missed the like button :/
TECHHELPERZZ 1 year ago
Asian women on the street #lushfmlk.info#
kayaavaki 1 year ago
you are my man are the best from all youtube...kp go
adrianseverus 1 year ago
very very very nice teacher :) thanx.. :)
yusufaliboz 1 year ago
This has been flagged as spam show
people! i came with an announcement:
bucky is the best teacher/guide we will ever have so don't waste your time and watch another tutorial because it's great
superphantom1000 1 year ago
people! i came with an announcement:
bucky is the best teacher/guide we will ever have so don't waste your time and watch another tutorial beacause it's great
superphantom1000 1 year ago 2
I don't know why people go through this trouble. They only deserve to be appreciated and praised for the trouble they went through even if their work is not perfect which I believe this not the case. This is awesome work, and all your tutorials.
nidakat 1 year ago
I wish i had these tuts when i was taking programming classes
xKais3rx 1 year ago 2
i think you already told us in one of the earlier tuts what 'in' does
inzanemada 1 year ago
Bucky = "C'mon keyboard"
if Bucky == "C\'mon keyboard": print "YOu should change your keyboard !!!"
TheBadminto 1 year ago
this is a great way to learn programming. great job dude!
zacharycampbell1 1 year ago 2
BAM...you are the best
jmachete 1 year ago 3
Wow! great tutorial....
WhoAmI6251 2 years ago 3
easy hoss
themewz 2 years ago 3
I accidently pressed the thumbs down TWICE coz im stupid but your an amazing teacher thank you...
badmanz3 2 years ago 6
Its much better than any book I bought for python
boogiboy3d 2 years ago 4
@boogiboy3d yeah dude totally rocks. I'm tracking through two dummy books and these tut's have made it all come together. I guess to it's all about practice practice but you can't beat these and they are FUN!
3djes 1 year ago
After hearing != is not equal to I HAD to let out an "oh my f***ing god". 30 minutes of looking on Google and this guy solves my question in a few.
AndoVenom 2 years ago 4
>>>ThisTutorial == Amazing
True
MWGlitchers 2 years ago 2
i did html but phython s pretty easy to learn after this i'm going to do c++
charmanderareburn 2 years ago
great tutorials. Amazing teacher :)
LaytProducts 2 years ago 95
mostly same as C++
ken62310 2 years ago 12
ya pretty much. :P. I learned a bit of c++ and i know Visual Basic 2008 so python is really easy to learn. But i bet it would be a bit hard if people didn't have any former knowledge of programming
LaytProducts 2 years ago 3
lol ya i did a tiny bit of c++ and python is easy as hell to get into once you've tried out c++
GNSstudios 2 years ago 5
I love this tutorial series! Saved much time. :)
caiuschance 2 years ago 62
This has been flagged as spam show
third!
yamdongjai 2 years ago
This has been flagged as spam show
FIRST!!
bobbyhill601 2 years ago
dont spam..
GintaMinta 2 years ago 4
This has been flagged as spam show
that isn't spa, fuck u xD
bobbyhill601 2 years ago