Anyone out there use Python I have a quick question about an integer/float. I’m suppose to be able to access cognitive labs to help answer questions but the site just times out on me with a 504 error so I’m waiting for responses but the question is bugging me lol
-
-
The question is: what is the type of the following int(1.0)? Answer options are: a) float, b) int, c) bool. Am I right in thinking it’s an int as it says it in the question? I’m really new to this so I’m torn between int and float.
- End of conversation
New conversation -
-
-
Can I also ask if this is the code to convert the number 1 to a Boolean? Print(bool(1)) or am I misunderstanding the question.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.