332,376 views
15 votes
15 votes
What would be the data type of "Number"+str(14)?

A string
An integer
It would produce an error

User Mattlangford
by
3.1k points

1 Answer

18 votes
18 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 Chernikov
by
3.4k points