Q. What is the output of the following code?

Code:
>>>a=("Hello")*3
>>>a
  • (A) (‘Hello’,’Hello’,’Hello’)
  • (B) The operator * not valid for tuples
  • (C) (‘HelloHelloHello’)
  • (D) Syntax error
πŸ’¬ Discuss
βœ… Correct Answer: (C) (‘HelloHelloHello’)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
233
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Rajeev Malhotra
Publisher
πŸ“ˆ
95%
Success Rate