Answers for "input value using python"

3

how to take input in python

# Taking string input
a = input("Enter a string: ")
print("String is: ", a)

# Taking integer input
b = int(input("Enter an integer: "))
print("Integer is: ", b)

# Taking float input
c = float(input("Enter a float value: "))
print("Float value is: ", c)
Posted by: Guest on October-01-2020
1

how to take input of something in python

name = input("What is your name? ") 
print("Hi, " + name)
Posted by: Guest on December-30-2019

Code answers related to "input value using python"

Python Answers by Framework

Browse Popular Code Answers by Language