Sliced Sequence In Python

Introduction

 
In this blog, I will explain about the Sliced Sequence in Python. I will show the output in the Run module.
 
Software Requirement
 
Python3.5.2.
 
Simple Programming
  1. print("Welcome To C#Corner........:")  
  2. print('Slicing Sequences :')  
  3.   
  4. tuples=("The","Python","Blog","By","SR","Karthiga","In","C#Corner")  
  5. sliced_tuple=tuples[4:6]  
  6. print("Tuple Values :")  
  7. print(sliced_tuple)  
  8.   
  9. lists=["The","Python","Blog","By","SR","Karthiga","In","C#corner"]  
  10. sliced_list=lists[6:8]  
  11. print("List values :")  
  12. print(sliced_list)  
  13.   
  14. strings="SR Karthiga In C#corner"  
  15. sliced_string=strings[0:20]  
  16. print("string values :")  
  17. print(sliced_string)  
Explanation
 
I  will clearly explain the Slicing Sequence in Python. This shows the tuple value, list value, and string value. It will show in the Run Window.
 
Output
 
Output