Получение ошибки SyntaxWarning: объект 'str' не может быть вызванPython

Программы на Python
Ответить Пред. темаСлед. тема
Anonymous
 Получение ошибки SyntaxWarning: объект 'str' не может быть вызван

Сообщение Anonymous »

Код: Выделить всё

def main():
print("""Bagels, a deductive logic game.
By Al Sweigart [email protected]

I am thinking of a {}-digit number with no repeated digits.
Try to guess what it is. Here are some clues:
When I say:        That means:
Pico           One digit is correct but in the wrong position.
Fermi          One digit is correct and in the right position.
Bagels         No digit is correct.

For example, if the secret number was 248 and your guess was 843, the
clues would be Fermi Pico.'''(Num_DIGITS))

while True:  #Main game loop.
# This stores the secret number the player needs to guess:
secretNum = getSecretNum()
print("I have thought up a number.")
print(" You have {} guesses to get it.".format(MAX_GUESSES))

СинтаксисПредупреждение: объект 'str' не может быть вызван; возможно, вы пропустили запятую?
print("""Бублики, дедуктивная логическая игра.

Подробнее здесь: https://stackoverflow.com/questions/786 ... t-callable
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Python»