Informatics Practices
Write a Python command to display your school name, class and section, separated by "-".
Python Funda
3 Likes
Answer
print("Kendriya Vidyalaya", "11", "A", sep = "-")
Output
Kendriya Vidyalaya-11-A
Answered By
1 Like
Related Questions
Assertion (A): Floor division operator (//) in Python is different from division operator.
Reasoning (R): Consider the given two statements:
>>>10//3 will give the output as 3.
On the other hand,
>>>10/3 will give the output as 3.3333333333333335
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.
Write a Python command/instruction/statement to display your name.
Evaluate the following expressions manually:
(a) (2 + 3) ** 3 - 6/2
(b) (2 + 3) * 5//4 + (4 + 6)/2
(c) 12 + (3 * 4 - 6)/3
(d) 12 + (3 ** 4 - 6)//2
(e) 12 * 3 % 5 + 2 * 6//4
(f) 12 % 5 * 3 + (2 * 6)//4
Evaluate the above expressions by using IDLE as a calculator and verify the results that you get manually.