jeudi 16 avril 2020

How come this works on Python2 but not in Python3?

For some reason I don’t get why my code is not working on my Python3 have tired to tweak the code but yet no correct results

main reason am doing this is to get more in depth concept on how code works from one update to the next and there differences

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 name():
    name = input("Input name here:")
    print("Welcome sir we also request your age", name)
    if name == input:
       print(name)

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("")




def number():
     number = (input("Input age number here please to proceed:"))
     print(number)


 **All my functions seem to be correct order?**
name()
number()
decorated()

Aucun commentaire:

Enregistrer un commentaire