# Exercise 1 solution : Python tutorial 130

///Exercise 1 solution : Python tutorial 130

## Exercise 1 solution : Python tutorial 130

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

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

By |2021-02-06T12:18:49+00:00February 6th, 2021|Python Video Tutorials|23 Comments

1. N1nja 0p February 6, 2021 at 12:18 pm - Reply

list1=["abc","xyz","pnv"]
empty=[i[::-1]for i in list1]
print(empty)

2. Ankit Dutta February 6, 2021 at 12:18 pm - Reply

but there is a problem showing error when i write in this way
element = [i[::-1] for i in l]
return element

3. SDB DARK NINJA GAMER February 6, 2021 at 12:18 pm - Reply

l = ['abc', 'tuv', 'xyz']

l2 = [i[::-1] for i in l]

print(l2)

4. Aamir Pasha February 6, 2021 at 12:18 pm - Reply

You are the best in youtube

Subscribed

6. Avinash Kumar February 6, 2021 at 12:18 pm - Reply

l = ['abc','def','ghi']
reverse_l = [i[::-1] for i in l]
print(reverse_l)

7. siddharth singh February 6, 2021 at 12:18 pm - Reply

Sir aap ne input me "bac" laane ke liye khaha tha is video ke starting me par thats impossible

8. white mice February 6, 2021 at 12:18 pm - Reply

def rev(l):
new=[i[::-1] for i in l]
return new
l=input("enter string with comma seperated: ").split(",")
print(rev(l))

9. Rukaiya Ănwarღ February 6, 2021 at 12:18 pm - Reply

string = ['abc','tuv','xyz']

new_string = [word[::-1] for word in string]

print(new_string)

10. I Want To Be February 6, 2021 at 12:18 pm - Reply

mind = ['evoL','uoY','riS']
heart =[i[::-1] for i in mind]
print (heart)

11. We Can February 6, 2021 at 12:18 pm - Reply

thanks me by subscribing my channel 🙂
k = ['abc' , 'xyz']

neg = [k[::-1] for k in k]

print(neg)

12. aman gupta February 6, 2021 at 12:18 pm - Reply

l=["abc","def"]

s=[i[::-1] for i in l]

print(s)

13. Xenon February 6, 2021 at 12:18 pm - Reply

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)

14. Vishaka Saxena February 6, 2021 at 12:18 pm - Reply

This concept is too cool👍👍

15. Vikash Kumar February 6, 2021 at 12:18 pm - Reply

name_list=['abc','efg','xyz']
print([name[::-1] for name in name_list])

16. aksh king February 6, 2021 at 12:18 pm - Reply

Nice brother

17. Coders_Don't_Quit February 6, 2021 at 12:18 pm - Reply

def reverse():

l = [input("Word : ") for i in range(int(input("How many words ?")))]

return [i[::-1] for i in l]

print(reverse())

18. Techno Freak February 6, 2021 at 12:18 pm - Reply

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.

20. Gaurav singh February 6, 2021 at 12:18 pm - Reply

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

21. Abhiyanshu Kumar February 6, 2021 at 12:18 pm - Reply

we can also do:
rev_list = [ i [::-1] for i in l ]
print(rev_list)