Python Programming Tutorial - Tutorial 5 - Converting Integers to Strings [HD] [BEGINNER]

preview_player
Показать описание
Hey guys! Sorry, this one is REALLY basic.. But it is important.. Therefore, I made a video based on it.

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

Bro, these tutorials are awesome, the perfect length, detail, and ever so slightly entertaining. Keep it up Bro, you've gained my subscription!

urfelderfelstein
Автор

Thank you, MinecraftArt, I was in my room reading about python when integers came up, and the examples weren't terribly good. But thanks to you I can finally get my head around int( ) and int( ) when it's compared to a string. I can't thank you enough, man/

PICfilMbr
Автор

I'm sorta surprised you never thought of this way but it works to just add quotation marks before and after the integer like this: x = "45"

TheUkeKid
Автор

I keep getting syntax error on last line of the y+x. the y is the error. what do?

eddiej.
Автор

I haven't tried this yet but is it possible to just make x be like this

x = "45"

wouldn't that be a string?

TheUkeKid
Автор

biiipify, did you make sure it was saved as .py?

matthewgoulding
Автор

Does this work backwards when converting from string to integer?

sonfuniverse
Автор

is it possible to convert int to list?

johnwogu
Автор

You Dont Really Need That, I Did It Without Colors And It Worked.

scmiller
Автор

Hi, , I tried the same in Jupyter Notebook, but I am getting an error as TypeError: 'str' object is not callable. Is there any change in the rules now ? When I tried the same in Terminal, it is working. Can you explain why it is giving error in Jupyter Notebook?

mohammedzia
Автор

"i'm full of fail right now" that made me laugh

sailingasia
Автор

put the y+x into brackets, so you would have: print (y+x)

i had the same problem.

flipendo
Автор

If you wouldn't mind sending me a picture, I'd be more than happy to help!
Or, you could simply explain the problem through PM in greater detail.
Your choice, good luck!

Thanks,

-Luke

MinecraftArt
Автор

happened to me too, the next day it had the colors again.

TheUkeKid
Автор

You forgot to save it as .py, always add .py.

LiteMksas
Автор

Fix for new version:

#string+integer =NO NO

x = 45
z = "I love the number:"
#Remove space on str
x = st r(x)
print (" "+z+x)

danielrose
Автор

why confusing beginners, just make x = '45', now 45 is a string (i.e text) not a number (integer)

ahmedr.
Автор

PEOPLE!!!! EASIER WAY OVER HERE!!!!
instead of doing this: x = 45
do this: x = "45"

TheUkeKid
Автор

THANK U UR A FUCKING GOD U JUST FUCKING SAVED ME A HUGE HEADACHE BRUH

Poopythesnowmanman
join shbcf.ru