So the trouble that am having here is that when I run this on python2 it prints out correctly but when I go ahead and type in a name in the input section it gives me an error and that’s where am baffled? How can I get it to run correctly?
import re
app = ("Employment Application please fill what is needed in the bottem with other information needed")
pattern = re.compile(r"(w\+ w\+)")
matchs = pattern.finditer(app)
for match in matchs:
print(match.group())
def decor(write):
def wrap():
print("-El Pollo Loco-")
write()
print("-Reno,Nv-")
return wrap()
def print_text():
print("Employment Application").upper()
decorated = decor(print_text)
print("")
**Heres where I keep getting my error in python2 every time I type in a name I get an error?**
def name():
name = input("Input name here:")
print("Welcome sir we also request your age", name)
if name == input:
print(name)
def number():
number = (input("Input age number here please to proceed:"))
print(number)
name()
print("")
number()
decorated()
Aucun commentaire:
Enregistrer un commentaire