/
Alex_Ural
/
python-basics-exercises
Обзор
Документация
Войти
/
Alex_Ural
/
python-basics-exercises
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
ch03-first-python-program/2-screw-things-up.py
26 строк
609 B
Dan Bader
Refactor exercises naming scheme (ch01-ch06)
27 авг 2018, 02:31
27 авг 2018, 02:31
c8785d5
Код
Авторство
О чём код?
# 3.2 - Screw Things Up # Solutions to review exercies # Exercise 1 # The following line won't run because of a syntax error print("hi) # We didn't close the double quotes at the end of the string. # The line above needed to have been: # print("hi") # Exercise 2 ''' The following lines won't run properly, even if the syntax error in the line above is corrected, because of a run-time error ''' print(hello) # We meant to print the string "hello"; # a variable named 'hello' doesn't exist yet. # # This line could have been: # # my_string = "hello" # print(my_string)