

Guys please help this channel to reach 20,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.
Complete Playlist link –
If you follow this complete playlist of python tutorial surely you will learn everything about python programming language.
This is solution of exercise 1 of chapter 9
Source Code Link –
source
list1=["abc","xyz","pnv"]
empty=[i[::-1]for i in list1]
print(empty)
but there is a problem showing error when i write in this way
element = [i[::-1] for i in l]
return element
l = ['abc', 'tuv', 'xyz']
l2 = [i[::-1] for i in l]
print(l2)
is it wrong? please answer
You are the best in youtube
Subscribed
l = ['abc','def','ghi']
reverse_l = [i[::-1] for i in l]
print(reverse_l)
Sir aap ne input me "bac" laane ke liye khaha tha is video ke starting me par thats impossible
def rev(l):
new=[i[::-1] for i in l]
return new
l=input("enter string with comma seperated: ").split(",")
print(rev(l))
string = ['abc','tuv','xyz']
new_string = [word[::-1] for word in string]
print(new_string)
mind = ['evoL','uoY','riS']
heart =[i[::-1] for i in mind]
print (heart)
thanks me by subscribing my channel 🙂
k = ['abc' , 'xyz']
neg = [k[::-1] for k in k]
print(neg)
l=["abc","def"]
s=[i[::-1] for i in l]
print(s)
a=[]
num1=int(input("How Many Elements You Want To Enter"))
for i in range(0,num1):
L1=input("Enter List")
a.append(L1[::-1])
print(a)
This concept is too cool👍👍
name_list=['abc','efg','xyz']
print([name[::-1] for name in name_list])
Nice brother
def reverse():
l = [input("Word : ") for i in range(int(input("How many words ?")))]
return [i[::-1] for i in l]
print(reverse())
problem arriving while printing
??
I am learning this language from your tutorials. you are my teacher here. May Allah give you life, health, success and happiness in future.
Harshit i will remember you in my life being my teacher.
def reverse_string(l):
return[name[::-1] for name in l]
string = input("enter your string: ")
print(reverse_string([string]))
input =abc, efg, hij
output = jih, gfe, cba
why
we can also do:
rev_list = [ i [::-1] for i in l ]
print(rev_list)
Thanks to Allah 🙂 i did same 🙂
Ek chiz samjh nahi aayi name yadi variable tha to humne variable ko print mai kyu use nhi kiya aur bina variable k print kaise hua