Computer Science, asked by arundhillon06, 5 months ago

Which data type will you use to input your address in python​

Answers

Answered by Equestriadash
7

Answer:

String data type; str()

Explanation:

Since the data to be input is an address, which is purely a text value, the string data type will be used.

Any value enclosed in quotes will be treated as a string value, or rather, in other words, text value.

Since there is no actual calculation that needs to take place with the address, there is no need to use the int() function.

eval() can be used as well. eval() processes data according to the next statement. This means that it accepts both integers and string values.

Similar questions