the perpetual day here make me confused about the time. I thought it was only 13 or 14 until saw the clock which showed it was 17 already.
Keep going python study
You write the name of the desired new type in the same way as a function call, for example
x = float("3.4") print(x-1)
input() function takes no arguments and always gives back a
input() multiple times, you can access multiple lines of input. The first call to
input() gets the first line, the second gets the second line, et cetera.
- Then, the body consisting of one or more indented lines. The number of spaces (the amount of indentation) doesn’t matter, but being inconsistent will cause an error since Python uses the amount of indentation to determine where you mean the body to start or stop.
b = False
print(type(b), type(2>1), type(True))
True False <class 'bool'> <class 'bool'> <class 'bool'>
Note that in Python, when you use the
False directly in a program, they must be capitalized or you will get an error.