list and string index in Python

Published: 24 September 2021
on channel: sumit kumar
243
13

In this video we will learn advance level of indexing concept.
Along with this we will learn couple of example.
1)how to reverse list/string
2)how to reverse words in given string sentence using join function.
######Code used in video####
li=[4,7,9,10]
li[1:4]
li[-2:-4:-1]
li[-2:-4]
li[::-1]
test_str="sumit"
test_str[::-1]
s1="my name is sumit"
#s1_out="sumit is name my"
s2=s1.split(" ")
s2_rev=s2[::-1]
sep=" "
final_s=sep.join(s2_rev)
##########################


On this page of the site you can watch the video online list and string index in Python with a duration of hours minute second in good quality, which was uploaded by the user sumit kumar 24 September 2021, share the link with friends and acquaintances, this video has already been watched 243 times on youtube and it was liked by 13 viewers. Enjoy your viewing!