0

Am i using .format method wrong when that method involves a function with a list defined inside it?

For example: print("You are {} {}".format("lc_alphabet()", "num_list()") #lc_alphabet() has the lower-case alphabet list defined within it. #num_list() has a list of numbers from 1 to 26 defined within it. #I have already called for user input in the form of x=input("Enter text here ") I want to know whether I'm messing my syntax up or callling my functions incorrectly, because I get an error message stating: SyntaxError: Unexpected EOF occured (something similar, but it is SyntaxError and EOF)

23rd Jul 2017, 11:20 PM
Dean Carter
Dean Carter - avatar
1 Odpowiedź
0
hi. I dont speak english. I speak spanish and french. but. try return
25th Jul 2017, 12:19 AM
Ezequiel Leiuqeze
Ezequiel Leiuqeze - avatar