Solve problem with spaces using strip method : Python tutorial 33

preview_player
Показать описание
Guys please help this channel to reach 80,000 subscribers. I'll keep uploading quality content for you.

Python is easy programming language to learn and anyone can learn it, and these tutorials are 100% free in hindi.

You can share this playlist with your brother, sisters and friends. This will surely add some values to their life.

If you follow this complete playlist of python tutorial surely you will learn everything about python programming language.

In this video I told you about strip() method and we aslo solved problem that we faced in last video

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

This man is very hardworking guys ... promote and support him !!
print("Thank you !")

mr.unknown
Автор

Very good explanation. At this age of 58 with non technical background I am able to follow your lessons. Thank you very much.

sadiqinstructor
Автор

Thanks for every video, good way to teaching I have done this program in different way
name, length=input('enter a name and a char to find how many times that repeated separated by comma: ').split(', ')
name=name.strip()
name=name.replace(' ', '')
print(f'length of your name is {len(name)}')
length=length.strip() # this one way to remove space
print(f'this character is repeated in your name times')

infotube
Автор

thanks sir ap pehlay peogramer teacher ho jo is trah step by step explain kr raha ho

zameerhaider
Автор

Thanks A Lot.take love from Bangladesh Sir.

avilashbhowmik
Автор

Thanks for every video, good way to teaching

love.kumar.vaishnav
Автор

You are 💕😍 tooo good sir.. Thanku 🙏💕 sir

induchouhan
Автор

lstrip(), rstrip(), strip(), replace() all were

akshatbhutra
Автор

name, char = input("enter comma separated name and character : ").split(", ")
print(f"length of your name is {len(name)}")
print(f"character countb : {name.count(char)}")

TechGadgetZone
Автор

This is must be important. I hope you don't reach 80, 000 subs. instead 1, 00, 000 subs and further a diamond play button. I really wish you. Your skills are very highly rated. You should work at Google!

Dudeinfire
Автор

Sir plz make video lecture of java it's humble request

navneetsingh
Автор

bro if you write strip() in above f string line which prints its length then you will get just alphabets length not all input i mean then it will not count spaces

varuntanwani
Автор

name="Peter Parker"
print(len(name.replace(" ", "")))
o/p: length is 11
Awesome 👍

nikhilmattoo
Автор

Sir I am confusing exercise 3 solution I see your video are damm good sir but in this I am confused plz sir tell me

meghasingh
Автор

Sir jo aapne .strip k sath kiya h is video m wahi aap .replace() k sath krke bta dijiye ho nhi rhaa h

cricketexy
Автор

name, character = input("Enter your name please as comma separated input : ").replace(" ", "").split(", ") This will remove all spaces even if the user gives in the middle of the string.

neelusalon
Автор

chapter two tak koi exercise hy tuo batein

PrimeGoods
Автор

user, code=input("enter one num and a alphabet comma seprated: ").split(", ")
print(f"lenght of your name: {len(user)} and total digits are:

wildturtle
Автор

sir, i'm facing a problem. ap ny kaha tha terminal py python likh kr file k name ka pehla word likh kr tab press krain tou agay khud hi file ka full name aa jata hai. pehly bilkul thekk chal raha tha but aj nahi chal raha please help sir

muhammadhamza
Автор

name, Character= input("Your name and character: ").split(", ")
print("length of your name is", len(name.strip()), "and the character you want to count is ",

AmeerHamza
visit shbcf.ru