String indexing in Python is easy ✂️

  Рет қаралды 75,755

Bro Code

Bro Code

Күн бұрын

Пікірлер: 59
@BroCodez
@BroCodez 2 жыл бұрын
# indexing = accessing elements of a sequence using [] (indexing operator) # [start : end : step] credit_number = "1234-5678-9012-3456" print(credit_number[0]) print(credit_number[0:4]) print(credit_number[:4]) print(credit_number[4:8]) print(credit_number[4:]) print(credit_number[-1]) print(credit_number[-4:]) print(credit_number[::2]) print(credit_number[::3]) # EXERCISE 1 credit_number = "1234-5678-9012-3456" # last_digits = credit_number[-4:] # print(f"XXXX-XXXX-XXXX-{last_digits}") # EXERCISE 2 credit_number = "1234-5678-9012-3456" credit_number = credit_number[::-1] print(credit_number)
@stranger9951
@stranger9951 2 жыл бұрын
Do you include these shortvids to their main courses?
@KDX05
@KDX05 2 жыл бұрын
Wanted to thank you Bro code,thanks to your lessons I learned Java and now I'm way ahead of my course in school and that made my life so easier,also im looking forward to learning other programming languages with your teaching
@o2k0be
@o2k0be Жыл бұрын
Less time , Very quality teaching. Your name defines you Bro Code!!
@earth7641
@earth7641 2 жыл бұрын
Well, that's quick! Keep up the good works!
@iskier429
@iskier429 2 жыл бұрын
you are a true legend.
@sohambachhav4923
@sohambachhav4923 2 жыл бұрын
Bro your Python Vids were just a gold mine for me and many of my friends. Less time quality teaching thanks for it bro one request :- Can you start JS or React Js course and also some python projects??
@eyalsilbershtein5765
@eyalsilbershtein5765 2 жыл бұрын
I love your videos so much! You have helped me a lot! I am currently struggling with importing and using other python files to the main python file... Could you please do a video about writing and reading from other python files? Thanks
@Cruisewithmkings
@Cruisewithmkings 2 ай бұрын
you should have gone far by now i presume
@eyalsilbershtein5765
@eyalsilbershtein5765 2 ай бұрын
@InvestorMkings actually I did, currently in first year of software engineering ;) but thanks
@Cruisewithmkings
@Cruisewithmkings 2 ай бұрын
@@eyalsilbershtein5765 nice
@alejandrojosemolinamurillo4405
@alejandrojosemolinamurillo4405 25 күн бұрын
Thanks bro code you are awesome
@basscat8110
@basscat8110 2 жыл бұрын
Awesome video Bro, hope you get to 1 mil soon
@deborahchirambo143
@deborahchirambo143 Жыл бұрын
very easy to understand ..thanks @Bro Code
@Afghanistanfutsalfans
@Afghanistanfutsalfans Жыл бұрын
WOW! can't imagine how good are u at python!
@J2128H
@J2128H Жыл бұрын
Great Content!
@Toothless_Rides
@Toothless_Rides Жыл бұрын
Late to this party. Currently heading through Intro to Scripting. Found your channel and love it. Thank you! Sub’d.
@preraksemwal
@preraksemwal 2 жыл бұрын
Hey @BroCode, Love your channel. I really liked your previous logo for the channel, and also the introductory + concluding short funny monologues, like in javaFX videos. Please bring that vibe back❤
@molifer1960
@molifer1960 2 жыл бұрын
bro this video came out just i was doing string indexing with array for my game THNX
@bekkhanh
@bekkhanh Жыл бұрын
great lesson :D
@kairatbekmuratov1957
@kairatbekmuratov1957 2 жыл бұрын
thank u bro, i love u
@fhd21
@fhd21 2 жыл бұрын
great straight forward video. please do one on regex.
@piptxt7185
@piptxt7185 2 жыл бұрын
Is that thumbnail your way of saying that you are locked in a basement forced to make coding tutorials?
@BroCodez
@BroCodez 2 жыл бұрын
HURRY!
@אביבביאדגילין
@אביבביאדגילין 11 ай бұрын
Thanks you so much bro☆
@brajagopalmukherjee1588
@brajagopalmukherjee1588 2 жыл бұрын
Sir how did you learn all these technologies? What are learning strategies couldnu share ? You are an inspiration ,love from India♥️
@BroCodez
@BroCodez 2 жыл бұрын
I went to university
@brajagopalmukherjee1588
@brajagopalmukherjee1588 2 жыл бұрын
@@BroCodez great University,in our university they never go depth
@Cruisewithmkings
@Cruisewithmkings 2 ай бұрын
@@brajagopalmukherjee1588 same with mine
@Ravi.Kumar-
@Ravi.Kumar- 2 жыл бұрын
Is there any full course of python that you have prepared. I would like to learn from you. I’m new to programming and struggling to get the logic.
@uknownytbr158
@uknownytbr158 Жыл бұрын
thanks bro
@talknotheduck595
@talknotheduck595 2 жыл бұрын
What do you use to code
@ninjapirate123
@ninjapirate123 5 ай бұрын
Can you try doing some Python exercises, like completing questions by coding in Python
@mamidied4249
@mamidied4249 4 ай бұрын
u can make AI do it
@ninjapirate123
@ninjapirate123 4 ай бұрын
@@mamidied4249 yes but then I won't learn
@hellgamer5248
@hellgamer5248 2 жыл бұрын
Bro your the true CHAD
@joncaldwell4753
@joncaldwell4753 8 ай бұрын
Thank you
@knj5320
@knj5320 2 жыл бұрын
Hello bro Can you make a video on argument counts and argument vectors in C programming language
@noobienate1293
@noobienate1293 2 жыл бұрын
Hey , Ik this is unrelated but can u pls make a course on react js? Thanks gigaChad😅
@PSIwolf39
@PSIwolf39 Жыл бұрын
Here's some code I wrote with string indexing: import math firstName = input(f"What is your first name?: ") print(f"The first letter of your first name is {firstName.upper()[0]}.") print(f"The last letter of your first name is {firstName.upper()[-1]}.") print(f"Your first name written backwards is {firstName[::-1]}.") middleName = input(f"What is your middle name?: ") print(f"The first letter of your middle name is {middleName.upper()[0]}.") print(f"The last letter of your middle name is {middleName.upper()[-1]}.") print(f"Your middle name written backwards is {middleName[::-1]}.") lastName = input(f"What is your last name?: ") print(f"The first letter of your last name is {middleName.upper()[0]}.") print(f"The last letter of your last name is {middleName.upper()[-1]}.") print(f"Your last name written backwards is {middleName[::-1]}.") print(f"Your initials are {firstName[0]}{middleName[0]}{lastName[0]}.")
@ryanswn8753
@ryanswn8753 2 жыл бұрын
Can you make a renewed" How to make Snake Game"
@nugget6408
@nugget6408 2 жыл бұрын
Absolutely chad
@lukavardanidze4460
@lukavardanidze4460 2 жыл бұрын
Sir, can u explain recursion in python?
@imadhassan718
@imadhassan718 2 жыл бұрын
Are you Westjett by any chance
@jeffmouradi3601
@jeffmouradi3601 2 жыл бұрын
Please Bro can u explain for me why u write (f) like string (f "xxxx xxxx xxxx {last_digits}")./ Thank u
@resoiseatingcorn
@resoiseatingcorn 2 жыл бұрын
How did you learn to code?
@BroCodez
@BroCodez 2 жыл бұрын
I went to university
@wtfdoiputhere
@wtfdoiputhere 2 жыл бұрын
Drop the full SQL course king 👑
@littlegliscor8547
@littlegliscor8547 2 жыл бұрын
Yo I'm 2nd Mr. bro
@resoiseatingcorn
@resoiseatingcorn 2 жыл бұрын
First!! pls heart!
@BroCodez
@BroCodez 2 жыл бұрын
ok
@ModisticCoder
@ModisticCoder 2 жыл бұрын
But isn't this also called slicing?
@vladogoro1633
@vladogoro1633 2 жыл бұрын
i promise end seing later
@someguy9163
@someguy9163 Жыл бұрын
why dose it say help me
@sainishantbiradar8022
@sainishantbiradar8022 10 ай бұрын
algo
@nabilpro1662
@nabilpro1662 2 жыл бұрын
bro just say python is easy
@noliyeb
@noliyeb Жыл бұрын
String indexing Dumbest and most boring Python Subject...
String methods in Python are easy 〰️
12:06
Bro Code
Рет қаралды 136 М.
Python email slicer exercise 📧
3:46
Bro Code
Рет қаралды 50 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Please Master These 10 Python Functions…
22:17
Tech With Tim
Рет қаралды 270 М.
String Indexing || Why? How? || Python for Beginners
4:47
Learning Champion
Рет қаралды 5 М.
Format specifiers in Python are awesome 💬
5:21
Bro Code
Рет қаралды 92 М.
5 Useful Dunder Methods In Python
16:10
Indently
Рет қаралды 67 М.
How I Would Learn Python FAST (if I could start over)
12:19
Python string slicing ✂️
11:37
Bro Code
Рет қаралды 66 М.
Learn Python OOP in under 20 Minutes
18:32
Indently
Рет қаралды 183 М.
Python *ARGS & **KWARGS are awesome! 📦
14:54
Bro Code
Рет қаралды 90 М.
Python lists, sets, and tuples explained 🍍
15:06
Bro Code
Рет қаралды 360 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН