156k views
4 votes
What would be the data type of "Number"+str(14)?

A string
An integer
It would produce an error

User Ysh
by
4.3k points

1 Answer

5 votes

Answer:

string but see below.

Step-by-step explanation:

Depending on the language, it would produce a string in most languages I know. More precisely it would convert an integer into a string that would be attached to the string "number". If it works for you, I would put a space between the r in number and the " mark. But you may want it to read as "Number14.

User Johan Kullbom
by
4.2k points