Input Statement
Input Statement
PREP SCHOOL
ICT Department
Objectives
Students will be able to:
Std1=str(input(“Enter Name”))
Std2=str(input(“Enter Name”))
a) input()
b) print()
c) output()
User can
enter
string data
in an
integer
Question 3
Which of the following is correct syntax for input()?
a) int(input())=a
b) a=int(input())
c) a=input(int())
d) input(int())=a
Question 4
Why is the following input statement is not user friendly?
a=int(input())
It is not
specified
what to
enter
Question 5
What will be the line of code for following output?
Enter your height: 6.2