Комментарии:
please tomorrow i will have a test abt this. please bless me
ОтветитьIn wich flowchart symbol sould i write the index ??
ОтветитьCan i slice a float number like 1.23456 and extract the number 3
ОтветитьThanks bro
ОтветитьYou are not using parenthesis () for print then how did the output came?
Ответитьawesome
ОтветитьProgram to flip what the user writes and remove all the vowels.
new=[]
flapjack=input("Write a sentence: ")
for i in range(len(flapjack)):
if flapjack[i]!="a" and flapjack[i]!="e" and flapjack[i]!="i" and flapjack[i]!="o" and flapjack[i]!="u" and flapjack[i]!="A" and flapjack[i]!="E" and flapjack[i]!="I" and flapjack[i]!="O" and flapjack[i]!="U":
new.append(flapjack[i])
newer=(new[len(new):-len(new)-1:-1])
print("".join(newer))
I suppose it could be turned into a game by then user 2 guessing the original sentence.
new=[]
flapjack=input("Write a sentence: ")
for i in range(len(flapjack)):
if flapjack[i]!="a" and flapjack[i]!="e" and flapjack[i]!="i" and flapjack[i]!="o" and flapjack[i]!="u" and flapjack[i]!="A" and flapjack[i]!="E" and flapjack[i]!="I" and flapjack[i]!="O" and flapjack[i]!="U":
new.append(flapjack[i])
newer=(new[len(new):-len(new)-1:-1])
print("".join(newer))
guess= input("Guess the original sentence: ")
if guess==flapjack:
print("You win!")
else:
print("No bueno")
Which application youbare using for practice in this vedeo
Ответитьhow do i print the frist and last element only?
ОтветитьYour videos are well worth the time; thanks so much. Very well done
ОтветитьThank you that was helpFull.....
ОтветитьCorey is the clearest and most concise Python teacher around. You're the best, Corey!
ОтветитьThank you for this concise and easy explanation
Ответитьhow do you use the print function without the bracket and you get away with it 🤔
ОтветитьIs it work on tuples
ОтветитьI have a doubt. If you run str_name[::-1] you get the string in reveresed format. But when i try str_name[0:4:-1] note that the length of string is 4, so I'm directly giving the start as 0 and end as the total string, and the index is -1. When I run this, it doesn't work! Why? Can anyone say please?
ОтветитьHey how can i find a ch[i] in a tableau of ch
Ответитьthank you
Ответить+ Syntax: list[start:end:step]
ОтветитьThanks bro, after 4 hours i can fix the problem so easy, after i see you in 10 minuts 🤣i folow you bro
Ответитьbeen taking a course at a university for the last 2 months and we are focusing entirely on python. This guy explains everything so well to the bone my mind is blown and my skills are getting better. thanks for your incredible content!
Ответитьyour videos are such gems :))
ОтветитьVery well explained! Thank you so much!
ОтветитьWow, you covered what I've been confused for 3 days on within two minutes. For some reason, it wasn't explained to me that it was start:end:STEP. I was so confused what double colon meant(::) and i couldn't get my solutions. Also confusing was they called the first value of the slice an INDEX value and the second part the ELEMENT value. I think it's just much easier for learners to just understand the endpoint is THROUGH until endpoint, like a stop. That saved me a lot. thanks a ton!
ОтветитьThank's a looot
Ответитьaswm explanation man god bless you make more video keep providing knowledge us ❤
Ответитьhey i have a doubt..if this is the case how to print the only first element and the last element in a list?? take an exmpl frm the video itself from my_list, so now how do you only print the 0 and 9 from the list???
ОтветитьIf perspicuous had a face then that's you!
Ответитьwhy didn't the slice [2:-1:-1] work
ОтветитьIn a different video Corey said that there is a good reason why the first element is included and the last element is non-included during these operations. What is that reason?
ОтветитьMany thanks
ОтветитьThis is well explained bro.. thank you so much
ОтветитьYou really helped me a lot man, thank you very much!
ОтветитьHeyy corey ...u explain simple very well .i found it well intresting .god bless you .keep uploading
Ответитьsuper concise and clear !!!! amazing !!! thank you;))
ОтветитьIf Corey was Swedish I’d try to hire him as my personal python teacher.
Ответитьthanks for this
Ответить2022
Ответитьthank you for this list slicing tutorial! very simple and easy to follow, completely explained what i was struggling with. thanks a lot!
Ответитьyour explanation is quite clear. And with standard spoken English, I even no need to turn on the subtitle. Thanks a lot.
Ответитьbest python series ever!
ОтветитьThanks for the video, was always confused with the negative indexing
ОтветитьThank you for such a well-explained tutorial! This really helped me!
ОтветитьCorey while making video.. could you pls change the theme. it's very difficult to see the content.. however your video is awesome with clear explanation and details.
ОтветитьHow would you take a string, and make it so it repeats the string in Upper,Lower,*
ОтветитьThanks very much... That's very informative and useful.✌🏼🙌🏼
ОтветитьThe print function doesn't work for me without parentheses.
print my_list[0:5]... doesn't work.
print (my_ist[0:5]) is only working.