English

Write the output of the following Python code: for k in range(7,40,6): print ( k + '-' ) - Computer Science (Python)

Advertisements
Advertisements

Question

Write the output of the following Python code:

for k in range(7,40,6):
     print ( k + '-' )
Very Short Answer
Advertisements

Solution

Error as unsupported operand type(s) for +: 'int' and 'str'.

shaalaa.com
  Is there an error in this question or solution?
2025-2026 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×