Prehistory: I just started learning Python and am learning from the book by Zed A. Shaw, "The Easy Way to Learn Python." So, there is a task that needs to be written and executed in the Terminal (I work on a Mac) Here is the code:
# -*- coding: utf-8 -*- import codecs, sys outf = codecs.getwriter('cp866') (sys.stdout, errors = 'replace') sys.stdout = outf age = raw_input("Сколько тебе лет? ") height = raw_input("Каков твой рост? ") weight = raw_input("Сколько ты весишь? ") print "Итак, тебе %r лет, в тебе %r см роста и %r кг веса." % (age, height, weight) # Выдает SyntaxError: invalid syntax и стрелка, указывающая на ошибку, #где-то впереди, где пусто
Do not scold strictly if you do not like what I'm learning from this book.