Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
Which line reads a number with a decimal point, such as 2.5? | StemPy Lab
Quizzes
/
Which line reads a number with a decimal point, such as 2.5?
Python Programming
Medium
Middle Stage (6–8)
High School (9–10)
High School (11–12)
Undergraduate
General
Python Basics › Input and Output
Created by
StemPy Lab
Which line reads a number with a decimal point, such as 2.5?
x = input("x? ")
x = float(input("x? "))
x = int(input("x? "))
x = str(input("x? "))
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← A student reads a = input() and b = input(), and shows a + b. The user types 3 and 4, and the output is 34. What is the mistake?
What does print("Hi " + "Ana") show? →
More on
Python Basics › Input and Output
Discussion (0)
Log in
to join the discussion.
Loading…
Problems on this topic
Write a program that asks for the length and the width of a rectangle in centimetres, as numbers…
Medium
A program asks two questions. The Input box has these two lines: India and then Pune.
Easy
A student wrote a program that asks for the price of an item.
Medium
Which function (int or float) would you use to read each value?
Medium
All problems on this topic →