Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> tech="python"
>>> print(tech[3])
h
>>> print(tech[-1])
n
>>> print(tech[-4])
t
>>> print(tech[-5])
y
>>> print(tech[--3])
h
>>> print(tech[-6])
p
>>> print(tech[6])
Traceback (most recent call last):
  File "<pyshell#7>", line 1, in <module>
    print(tech[6])
IndexError: string index out of range
>>> 
=========== RESTART: C:/Users/ROJA/Desktop/PERSIONAL/examplestr.py ===========
 
>>> 
=========== RESTART: C:/Users/ROJA/Desktop/PERSIONAL/examplestr.py ===========
 
e
a
t
 
h
>>> 
=========== RESTART: C:/Users/ROJA/Desktop/PERSIONAL/examplestr.py ===========
Traceback (most recent call last):
  File "C:/Users/ROJA/Desktop/PERSIONAL/examplestr.py", line 8, in <module>
    print(tech[22])
NameError: name 'tech' is not defined
>>> 
=========== RESTART: C:/Users/ROJA/Desktop/PERSIONAL/examplestr.py ===========
Traceback (most recent call last):
  File "C:/Users/ROJA/Desktop/PERSIONAL/examplestr.py", line 8, in <module>
    print(tech[22])
NameError: name 'tech' is not defined
>>> 
=========== RESTART: C:/Users/ROJA/Desktop/PERSIONAL/examplestr.py ===========
r
e
o
n
>>> 
=========== RESTART: C:/Users/ROJA/Desktop/PERSIONAL/examplestr.py ===========
Traceback (most recent call last):
  File "C:/Users/ROJA/Desktop/PERSIONAL/examplestr.py", line 12, in <module>
    print(tech[3,10])
TypeError: string indices must be integers
>>> 
=========== RESTART: C:/Users/ROJA/Desktop/PERSIONAL/examplestr.py ===========
hon and
>>> 
=========== RESTART: C:/Users/ROJA/Desktop/PERSIONAL/examplestr.py ===========
hon and
yth
>>> 
=========== RESTART: C:/Users/ROJA/Desktop/PERSIONAL/examplestr.py ===========
hon and
yth
python
>>> 
=========== RESTART: C:/Users/ROJA/Desktop/PERSIONAL/examplestr.py ===========
hon and
yth
python
achine l
>>> 
=========== RESTART: C:/Users/ROJA/Desktop/PERSIONAL/examplestr.py ===========
hon and
yth
python
machine 
>>> 
=========== RESTART: C:/Users/ROJA/Desktop/PERSIONAL/examplestr.py ===========
hon and
yth
python
machine
>>> 
=========== RESTART: C:/Users/ROJA/Desktop/PERSIONAL/examplestr.py ===========
 machin
>>> 
=========== RESTART: C:/Users/ROJA/Desktop/PERSIONAL/examplestr.py ===========
 machine
>>> 
=========== RESTART: C:/Users/ROJA/Desktop/PERSIONAL/examplestr.py ===========
 machine
pytho
>>> 
=========== RESTART: C:/Users/ROJA/Desktop/PERSIONAL/examplestr.py ===========
 machine
pyth
>>> 
=========== RESTART: C:/Users/ROJA/Desktop/PERSIONAL/examplestr.py ===========
 machine
python
>>> 
=========== RESTART: C:/Users/ROJA/Desktop/PERSIONAL/examplestr.py ===========
machine
python
>>> 
