@Akim41k
23 years old Designer from san. Francisco

Почему возникает ошибка на пустой строке python?

Строка пустая, но ошибка возникает WTF?

#Website price calculator
#Version 3.0
#Developed by Savvin Akim
#Follow me on Vkontakte, Facebook and Instagram
#

import time

Block_cost = 40
Main_page_cost = 200
Page_cost = 100
Repeated_page_cost = 50

website_type = input(
    "Which website type do you need?\nLanding page, Multipage, Webshop\n")

if website_type == "Landing page":
    blocks_amount = input("How many blocks do you need?\n")
    print("Counting..")
    time.sleep(2)
    print("Well, the price is " + str(int(blocks_amount)*40) + "€")
elif website_type == "Multipage":
    pages_amount = input("How many pages do you need?\n")
    print("Counting..")
    time.sleep(2)
    print("Well, the price is " + str((int(pages_amount)-1)*100+200) + "€")
elif website_type == "Webshop":
    pages_amount = input("How many pages do you need?\n")
    products_amount = input("How many products will be in website?")
    sections_amount = input("How many sections will be in website?")
    print("Counting..")
    time.sleep(2)
    print("Well, the price is " + str((int(pages_amount)-1) * 100+200+(int(products_amount)+int(sections_amount))*15) + "€"


Ошибка:
python calculator_3.0.py
File "calculator_3.0.py", line 34

^
SyntaxError: unexpected EOF while parsing
  • Вопрос задан
  • 319 просмотров
Решения вопроса 1
hottabxp
@hottabxp Куратор тега Python
Сначала мы жили бедно, а потом нас обокрали..
Забыли поставить круглую скобку в конце последней строки.
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы