In python programming what is the answer to this , type (1/2)
Answers
Answered by
0
The type() function returns the type of argument inside the paranthesis. =
type(1) gives output int (integer)
type(1/2) gives float (decimals)
type('hello') gives string (anything inside commas)
Attachments:
Similar questions