File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ int2 = 8
38
38
result = int1 + int2 # result = 12
39
39
result = int2 - int1 # result = 4
40
40
result = int1 * int2 # result = 32
41
- result = (int2+ 1 ) / int1 # result = 2
41
+ result = (int2+ 1 ) // int1 # result = 2
42
42
result = int2 ** int1 # result = 4096
43
43
result = (int2+ 1 ) % int1 # result = 1
44
44
```
@@ -295,7 +295,9 @@ Python позволяет взять или даже составить из э
295
295
11
296
296
>> > S.replace(' C' , ' 7' ) # Заменяет все подстроки на новые
297
297
' Welcome to 7alifornia!'
298
- >> > S.split() # Разбивает строку по разделителю и создает список. По умолчанию разделитель - пробел ['Welcome', 'to', 'California!'] >>> S.upper()
298
+ >> > S.split() # Разбивает строку по разделителю и создает список. По умолчанию разделитель - пробел
299
+ [' Welcome' , ' to' , ' California!' ]
300
+ >> > S.upper()
299
301
' WELCOME TO CALIFORNIA!'
300
302
>> > S += ' \n\n '
301
303
>> > S
@@ -311,4 +313,4 @@ Python позволяет взять или даже составить из э
311
313
312
314
[ Домашнее задание] ( hw4.md )
313
315
314
- [ Python online] ( https://repl.it/languages/python3 )
316
+ [ Python online] ( https://repl.it/languages/python3 )
You can’t perform that action at this time.
0 commit comments