20 solutions available
Question 1Assertion (A): Python is an object-oriented programming language.Reasoning (R): Using Python, any software can be designed. Everything in...
Question 3Assertion (A): To print the value of a variable, Python uses print() method.Reasoning (R): print() method displays the content on the...
Question 5Assertion (A): Python is a dynamically typed language.Reasoning (R): Python interpreter assigns variables a data type at runtime based on...
Question 8Assertion (A): Python is a general-purpose language, meaning it can be used to create a variety of different programs.Reasoning (R): Python...
Question 2Which of the following is syntactically correct text?"This is great!"'she shouted 'HELLO' loudly'"Goodbye'"This "course" is good"
Question 4Identify the correct print() statement:print(Hello)print("Hello")print('Hello")print("Hello')
Question 10Single-line comments in Python begin with ............... symbol.%"'''#
Question 11Which of the following codes is correct?1.print("Programming is fun") print("Python") print("Computer Science") 2.print ("Programming is...
Question 6Differentiate between displaying and printing method in Python.
Question 7Briefly explain the salient features of Python.
Question 9What are the advantages of Python programming language?
Question 12Write some limitations of Python.
Question 13What is the difference between Script mode and Interactive mode in Python?
Question 14Write instructions to the Interactive mode for the following:(a) To display sum of 3, 8.0, 6 * 12(b) To print sum of 16, 5.0, 44.0
Question 15Write the output of the following:num1 = 4 num2 = num1 + 1 num1 = 2 print(num1, num2)
Question 16Consider the statements given below and write Python command to display these statements in both Interactive and Script mode.Python is...
Question 17Write a code that prints your full name and your birthday as separate strings.
Question 18Record what happens when the following statements are executed:(a) print (n = 17)(b) print (8+9)(c) print (4.2, "hello", 6-2, "world",...
Question 19Use IDLE to calculate:(a) 6+4*10(b) (6+4) *10
Question 20Try the following code on the Python shell and evaluate the output generated:>>> print (3.14159*7) >>> print('I am a...