Robotics & Artificial Intelligence
Write the output of the following code:
nums = [1, 2, 3]
print(nums)
print(type(nums))
Getting Started
1 Like
Answer
Output
[1, 2, 3]
<class 'list'>
Explanation
print(nums)displays the contents of the listnums.print(type(nums))displays the data type ofnums, which is a list in Python.
Answered By
3 Likes
Related Questions
How many times will the following loop execute? What will be the output?
count = 0 while count < 3: print("Hello") count += 1Predict the output of the following code:
flag = False if flag: print("True") else: print("False")Draw the block diagram showing four degrees of freedom in a robot.
This branch of Artificial Intelligence allows machines to understand and interpret human language and speech.
a. Name the technology used here.
b. Mention two applications of this technology.