Questions to ask for interview for python code example

Example 1: how to ask a question in python

variable = input('How are you doing?')

#for a number response
variable1 = int(input('How old are you?'))

Example 2: ask a question on python

Question = input("your question")
if Question == ("yes")
	print ("well done")
elif Question == ("no")
	print ("try again")

Example 3: python interview questions

Python OneStop Solution..
link: https://github.com/itzanuragsinghania/Python-One-Stop

Example 4: python interview prep

# Negative indexes are the indexes from the end of a list, tuple, or string

arr = [1, 2, 3, 4, 5, 6]

#get the last element
print(arr[-1]) #output 6

#get the second last element
print(arr[-2]) #output 5