+ 1

Getting a weird error

def rep(): x=input() y=str(x) print (y) print (rep)

14th Nov 2016, 9:01 PM
Kemuel Samuels
Kemuel Samuels - avatar
3 Antworten
+ 6
you need to activate the rep function with () rep() also, since rep() does not return value and you encased it with print(), you will have also None as output in the bottom just replace print(rep) with rep()
14th Nov 2016, 9:03 PM
Burey
Burey - avatar
+ 4
^_^
14th Nov 2016, 9:54 PM
Burey
Burey - avatar
0
def rep(e): x=input() y=str(x) print (y) rep (input) new code, thanks!
14th Nov 2016, 9:09 PM
Kemuel Samuels
Kemuel Samuels - avatar