[tex]
{\color{red}{Which of the following is correct to take input of age from the user in integer form?
a) age=input("Enter your age")
b) age=int (input ("Enter your age"))
c) age=input(int ("Enter your age")) }}
\color{pink}{What will be the output of the expression: x>=y and x=-y, if x=10, y=107
a) True
b) False
c) Error}
[\tex]
Answers
Answered by
6
Which of the following is correct to take input of age from the user in integer form?
a) age=input("Enter your age")
b) age=int (input ("Enter your age"))
c) age=input(int ("Enter your age"))
b) age = int(input("Enter your age))
- Age = int(input("Enter your age)) is the correct form to take input of age from the user in integer form.
What will be the output of the expression: x>=y and x=-y, if x=10, y=107?
a) True
b) False
c) Error
a) True
- True will be the output of the expression: x>=y and x=-y, if x=10, y=107
Similar questions
Social Sciences,
19 hours ago
Physics,
19 hours ago
English,
1 day ago
English,
8 months ago
English,
8 months ago