How to enter input | SoloLearn: Learn to code for FREE!

+1

How to enter input

Code playground

6/1/2020 9:15:41 AM

Sai Shreyansh

8 Answers

New Answer

+10

Mention your language

+7

in which language you want to get input?

+3

value = int(input()) Or input()

+3

Sai Shreyansh Remember: If you are asking something for specific programming language then mention that name please use a variable to store input v = input() or if you want to input number then cast it v = int(input()) if you want to input float then again type cast it v = float(input()) if you want to Print something with asking for input then v = input("Hy ")

+3

Sai Shreyansh your answer is hiding in your question You have to use input () for get input in Python Here is a small example: X = input() print(X) Hope this helps you can change the data type by the use of int(),float(),str() int() for interger float() for decimal values str() for string inside the () bracket you have to put the value which you what to change so simple out input () inside them

+2

How to enter input in python

+1

Run this code to understand how input works in SoloLearn https://code.sololearn.com/WhiNb9BkJUVC/?ref=app

0

Sai Shreyansh In which language?