How to Work with 'Text'? (Python Strings)? #16

  Рет қаралды 59,668

Programiz

Programiz

Күн бұрын

Пікірлер: 51
@programizstudios
@programizstudios 2 жыл бұрын
🔥 Learn Python with a more hands-on experience with Programiz PRO-interactive lessons, quizzes & challenges. Try Programiz PRO: bit.ly/right-python
@Navin2911
@Navin2911 4 жыл бұрын
I would thoroughly recommend this series of lectures to all newbies. Its a great foundation. Thank and well done, Punit and the Programiz team.
@hema_varsh5814
@hema_varsh5814 3 жыл бұрын
I had a great job in your all vedios ...I used to try the practice problems given by you every day ...It is perfectly useful .actually i am beginner from biology group ..But after watching programiz vedio i got a great ideas ...Keep teaching sir ..I'm doing a great job ✌✨
@mehulkumawat8002
@mehulkumawat8002 4 жыл бұрын
thanks sir for creating this wonderful python course
@kirancp4758
@kirancp4758 2 жыл бұрын
Can you please clarify on why the answer is 7?( at 12.03 minutes)
@puchakayalasuresh5667
@puchakayalasuresh5667 3 жыл бұрын
ur communication skills are super sir mind blowing explanation
@akshedcentre8887
@akshedcentre8887 2 жыл бұрын
Aapka samzana ka Tarika sabse alag hai maine bahut bahut channel ki video dekhi hai lekin simple Trikha aap ka hi hai
@gauravgarg5597
@gauravgarg5597 3 жыл бұрын
compliment = " you are very good teacher, i like the way the topics of this series are structured " print (compliment.replace("you are","Punit is")) hahaha
@harmansingh6951
@harmansingh6951 3 жыл бұрын
lol
@pro.empire
@pro.empire Жыл бұрын
How would you find the frequency on "Python Strings"
@nayanaprakash6815
@nayanaprakash6815 3 жыл бұрын
We can't change a string as mentioned in 6:08 but how come the same rule doesn't apply when using String Methods in 10:45?
@programizstudios
@programizstudios 3 жыл бұрын
When we use string methods like this: text = "I like Python 3" result = text.lower() print(result) The text.lower() will create a new string and it is assigned the result variable. However, the text string will be unmodified.
@nayanaprakash6815
@nayanaprakash6815 3 жыл бұрын
@@programizstudios Ah! makes sense. Tysm :)
@mycha0
@mycha0 4 жыл бұрын
Please someone explain this code. I'd like to know why there is f without curly braces: print(f"Hello World!")
@programizstudios
@programizstudios 4 жыл бұрын
This code print(f"Hello World!") is equivalent to print("Hello World") for this case. The f-string is used for formatting string. For example, You can replace var1 = 5 var2 = 10 print("var1 =", var1, "var2 =", var2) with var1 = 5 var2 = 10 print(f"var1 = {var1} var2 = {var2}") If you want to learn more, search "python f-strings" on Google.
@mycha0
@mycha0 4 жыл бұрын
@@programizstudios Many thanks appreciate it
@gamez1
@gamez1 2 жыл бұрын
6:30 and 12:42 contradiction?
@girisankargr6896
@girisankargr6896 4 жыл бұрын
Hi i have a query please do respond.....How can we capitalize a letter from a text...like in python i want to make Y as upper case....How can i do that?
@harish0000
@harish0000 4 жыл бұрын
Please also alow us to save our code in python compiler which is on your site
@basharmufaq
@basharmufaq 3 жыл бұрын
Greetings sir. I really love your videos . I am trying to go for the entry level PCEP python certification. How many of your videos would cover for the material of that test ? if anyone knows the answer then please comment here.
@waltg6216
@waltg6216 4 жыл бұрын
Nice work, thank you!
@jackburtjr5057
@jackburtjr5057 4 жыл бұрын
I have a file. I split() lines of the file using 4 variables. Then, append to the list. What is used to add an instance variable to the list, so I have 5 variables? That I have to append data to, from a function that used data from the file to determine percents?
@TejusGolakoti
@TejusGolakoti 3 жыл бұрын
/ 100
@ugabuga4456
@ugabuga4456 4 жыл бұрын
I have 2 string exercises which are making me hate programming with python from the heart as they are suppose to be as easy as returning 1+1. def pairs(txt): if len(txt)%2==0: right_indexes=list(range(1,len(txt),2)) print(right_indexes) left_indexes=list(range(0, len(txt), 2)) print(left_indexes) right_letters=map(list(txt).__getitem__,right_indexes) left_letters=map(list(txt).__getitem__,left_indexes) pairs=list(zip(left_letters,right_letters)) return pairs I've ended up creating this list of paired tuples thinking it might help me understand better as I noticed how comparing 2 things next to each other. Because if the number of things is odd at the right side edge, it's not easy for me to know what to do. But it's not helping me to solve these very simple problems as I have no idea how to implement a for or while loop from pairs [(A,B),(B,C),(A,B),(C,C),(C,D)] for these 2 exercises: 1)Make a function that removes letters that are alone. Like if you have like ABBCABCCCD it would return BBCCC 2)Make another function which does the opposite turning like ABBCABCCC returns ACABD removing duplicates alight together (not just all). my brain only works to turn the whole thing into a set... ;____; When things are like this and you truly have to understand loops.... plus conversion as one is suppose to input a string and output should be a string.... I really feel like I'm the dumbest person alife Please help me solve these.
@georg101
@georg101 4 жыл бұрын
Good as always
@sirisiri5830
@sirisiri5830 4 жыл бұрын
Sir in quiz the answer for Q2 is o, your answer is d in git but negative index starts with last character e (-1), d(-2), 0(-3)
@kawaiikina3618
@kawaiikina3618 2 жыл бұрын
you have to count in "." as [-1]
@sandipansarkar9211
@sandipansarkar9211 3 жыл бұрын
great explanation
@PRAVEENKUMAR-wg1go
@PRAVEENKUMAR-wg1go 3 жыл бұрын
What is that git hub?
@AnimeFusionHub25
@AnimeFusionHub25 Жыл бұрын
its a place where you can share code with others
@harshjain9209
@harshjain9209 3 жыл бұрын
Is your app free of cost
@NehaGupta-if7se
@NehaGupta-if7se Жыл бұрын
"He said,\"what\'s there?\"""" -----> He said,"what's there?"........ why so Sir?, Although i took extra 3 quotes but still giving me the right statement
@oyevicuu
@oyevicuu 3 жыл бұрын
if you dislike the video u will get curse that you will not be able to learn python
@jancyranip3625
@jancyranip3625 Жыл бұрын
1k 2k 3 tolk os cheap, show me the program
@joyceadhiambo9977
@joyceadhiambo9977 2 жыл бұрын
1. k 2. o 3. Talk is cheap,Show me the program
@EmereEmmanuel
@EmereEmmanuel 2 ай бұрын
answers to quiz 1. k 2. o 3. talk is cheap.show me your program
@harshitx1.0
@harshitx1.0 3 жыл бұрын
Sup 😍
@vatsalranghar9708
@vatsalranghar9708 3 жыл бұрын
Answer:- 1. k 2. d 3. Talk is cheap.Show me the program.
@swarnaakshayastudio
@swarnaakshayastudio Жыл бұрын
1. k 2. e 3. Talk is cheap, Show me the program. This is the answer
@SonJamz2104
@SonJamz2104 Жыл бұрын
2nd answer is 'd' not 'e'
@lakshanj.kumara7648
@lakshanj.kumara7648 Жыл бұрын
1. k 2. d 3. Talk is cheap. Show me the program. >
@sunnyraut3243
@sunnyraut3243 3 жыл бұрын
1. k 2. d 3. Talk is cheap. Show me the program.
@oyevicuu
@oyevicuu 3 жыл бұрын
lol
@oyevicuu
@oyevicuu 3 жыл бұрын
his explanation is so good
@sunnyraut3243
@sunnyraut3243 3 жыл бұрын
@@oyevicuu bhai mein exercise ke answers de raha hu
@ntejaswi7708
@ntejaswi7708 3 жыл бұрын
How d?
@mr_gaider6174
@mr_gaider6174 2 жыл бұрын
@@ntejaswi7708 -1 " . " -2 " e " -3 " d " because you can't have -0
@oyevicuu
@oyevicuu 3 жыл бұрын
Greetings sir. I really love your videos . I am trying to go for the entry level PCEP python certification. How many of your videos would cover for the material of that test ? if anyone knows the answer then please comment here.
@gamingvicky1114
@gamingvicky1114 3 жыл бұрын
1.k 2.0 3.Talk is cheap.show me the program.
@sureshvarthya2250
@sureshvarthya2250 2 жыл бұрын
1.k 2.d 3.Talk is cheap. Show me the program.
Python Dictionaries: {key: value} Pairs  #17
9:07
Programiz
Рет қаралды 80 М.
Python Sets (When to use it?) #18
14:32
Programiz
Рет қаралды 48 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
F-strings In Python: Everything You Need To Know
23:29
ArjanCodes
Рет қаралды 50 М.
Python's Type Annotations DON'T Do What You THINK They Do
8:10
How to Use Strings in Python - Python Tutorial for Beginners
16:46
Programming with Mosh
Рет қаралды 248 М.
Accessing String Characters in Python
12:25
Neso Academy
Рет қаралды 51 М.
Lists & Tuples in Python (How to Use Them Effectively?) #15
19:29
String methods in Python are easy 〰️
12:06
Bro Code
Рет қаралды 126 М.
6 Tips to write BETTER For Loops in Python
9:19
Patrick Loeber
Рет қаралды 250 М.