Knowee
Questions
Features
Study Tools

What will be the output of the following code?a=(1111,2)print(a)

Question

What will be the output of the following code?a=(1111,2)print(a)

🧐 Not the exact question you are looking for?Go ask a question

Solution

The output of the code will be:

(1111, 2)

This is because the code is creating a tuple (a type of immutable list) with the elements 1111 and 2, and then printing that tuple.

Similar Questions

What will be the output of the following code snippet? a = 3 b = 1 print(a, b) a, b = b, a print(a, b)

What will be the output of the following program in Python?print(0 or 1)

What is the output of the following code in Python?

What will be the output of the following program in Python?print( not 2 < 4)

What will be the output of the following code?

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.