Guess The Python Output! #python #programming #coding

preview_player
Показать описание
Can you guess the output of this function before I run the code? Leave a comment if you guessed correctly!
Рекомендации по теме
Комментарии
Автор

[::-1] reverses the string and .title() capitalises the first letter of each word in the string

Kumar-oejm
Автор

I didn’t know what you were doing but I saw the string and I'm like "that's just backwards"

mushfiqurrahman
Автор

Output -> Please Like The Video
Explanation -> The string 'x' will be reversed by [::-1] and the starting character of each word will be capitalised because of title()

ryokai
Автор

I honestly doesn't understood the code but after I read the variable backwards, that was the only thing that makes the most sense to me

drama_lvl
Автор

legit just seen your video explaining the ::1 ::-1 concept yesterday! love these vids dude! as an amateur they really help!

KillRideMasterJ
Автор

It took logic of taking an object finding the right part and operating on it

AkivaB
Автор

Im fresh out the womb just discovered you but your videos are really helpful thanks

varyable
Автор

the only reason i knew it was from watching your videos 😎👍

WildWolf-pupj
Автор

Was right but not because of my knowledge but because I saw the string is written in reverse

MisterTrayser
Автор

Yep. Only because when I discovered how to manipulate strings like this I played with it for much longer than I would like to admin XD

MakinBacon
Автор

I love it, nice and simple. More of this please

jasonherr
Автор

I just started learning python today and being able to solve this in seconds was a big enjoy for me lol

knell
Автор

Ik the reverse but the .title was sick. Can't believe how many builtins there are for python's data types. Its amazing how they've managed to keep such a weakly typed type system so iron clad.

ApartmentAngelsFireStarters
Автор

Never felt so smart before, even though it was really easy to guess lmao

RealLinne
Автор

The most confusing part is that ".title()" is a built in method.

lucaayfmlyysiaejdsrtnnervd
Автор

I figured it out but didn't know what the title() method did until after. Thanks for teaching me something new while I am taking my Python full stack course!

feareeper
Автор

I figured it out with a second to spare and I'm a total novice.

samuellane
Автор

Liked the video and thanks this is my homework right now xD

blz_kanazaki
Автор

Always a pleasure to watch your new video, I am starting my journey but I figure out this one in less than 6 seconds 😊

domisiko
Автор

im new to python so i had to pause and google what the title method was, but other than that i knew what the output (relatively) was

dakotaburch