Pyg latin "input"


#1


https://www.codecademy.com/fr/courses/python-beginner-fr-FR-547zo/0/3?curriculum_id=5370f030fed2a866a2000001

Bienvenue dans le traducteur francais - Pyg Latin !
saisissez un mot svp de
Traceback (most recent call last):
File "python", line 2, in
File "", line 1, in
NameError: name 'de' is not defined

Hi I really don't understand why this is not ok .. please help , thanks


print ("""Bienvenue dans le traducteur francais - Pyg Latin !""")
original=input("saisissez un mot svp")


#2

No one has an idea plz ?


#3

You want we should hold your hand? Come on! Give it your all!


#4

:slight_smile: I've tested the code on idle and it works .. There is an "original" variable , user can input the text , I don't understand what's going wrong , can you give me a small info plz ?


#5

And you have IDLE and still want our help. Come on!


#6

ok I found I used raw_input instead of input .. So I can not use Python 3 ? because for all exercices before I used input , print with () .. ?


#7

This course is Python 2.7.x, which has both input and raw_input, the latter being a string, the former being unicode text, as I recall. The SCT may have allowed input in some cases, but for our purposes, keep to raw_input so you get consistent results.


#8

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.