Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to print an input backwards in python

str="Python" # initial string
stringlength=len(str) # calculate length of the list
slicedString=str[stringlength::-1] # slicing 
print (slicedString) # print the reversed string
Comment

PREVIOUS NEXT
Code Example
Python :: how to change web browser in python 
Python :: removing a channel from aconda 
Python :: selenium scroll to element python 
Python :: python pil bytes to image 
Python :: python version command notebook 
Python :: python sum comprehension 
Python :: pandas open text file 
Python :: transparancy argument pyplot 
Python :: python check if string is number 
Python :: flask hello world 
Python :: python make api request 
Python :: Scrape the text of all paragraph in python 
Python :: intersection in list 
Python :: redirected but the response is missing a location: header. 
Python :: email authentication python 
Python :: change all columns in dataframe to string 
Python :: delete index in df 
Python :: image in tkinter 
Python :: python get current user windows 
Python :: pyqt5 display math 
Python :: load static files in django 
Python :: create a vector of zeros in r 
Python :: how to use if else to prove a variable even or odd in python 
Python :: scanning 2d array in python 
Python :: how to use enumerate instead of range and len 
Python :: source code of Tortoise and hare algorithm in python 
Python :: python change cwd to script directory 
Python :: how to create your own programming language in python 
Python :: openpyxl change sheet name 
Python :: sort array python by column 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =