user input string python 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 get user inout in python
test = input()
test = input("Please enter your information: ")
test = int(input("Please enter your information: "))
Example 3: user input python
input = input("Enter your value: ")
print(input)
Example 4: 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)