Обсуждения
print( 2**5 )
print( 9 ** (1/2) )
0 голосов
2 ответовprint( 9 ** (1/3) )
1 голос
11 ответовprint( False or True)
1 голос
12 ответовprint( input()*input() ) Error
0 голосов
2 ответовprint( 9 ** (1/2) )
2 голосов
4 ответовprint( 7 and '0' and 1)
2 голосов
5 ответовprint( 1==1 or 2==3) True: Really?
0 голосов
5 ответовfor i in range(0,20, ): print( )
0 голосов
1 ответWhat is print( 2 * (2 + 2 ) )
-3 голосов
2 ответовIf except can handle common errors very well, doesn't that make the use of raise redundant inside of a try-except block?
For example:
try:
print( 5 / 0 )
except ZeroDivisionError:
raise ValueError("An error occurred!")
What's the difference if we handle it this way:
try:
print( 5 / 0 )
except (ZeroDivisionError, ValueError):
print("An error occurred!")
3 голосов
2 ответовАктуальное сегодня
C pointers
2 Votes
Python
0 Votes
Guys help please
0 Votes
Slicing in python
1 Votes
Python question
1 Votes
Control flow
0 Votes
HTML
0 Votes
Front-end vs Full-stack
1 Votes