input in python2 code example
Example 1: python get input
txt = input("Type something to test this out: ")
print("Is this what you just said? ", txt)
Example 2: how to receive user input in python
var = input("Text: ")
Example 3: python input
a = float(input("Input first number: "))
b = float(input("Input second number: "))
c = float(input("Input third number: "))
if a > b:
if a < c:
median = a
elif b > c:
median = b
else:
median = c
else:
if a > c:
median = a
elif b < c:
median = b
else:
median = c
print('The median is: ', median)