+ 1
For example: def name(word): print word name("hesham") How to make it accept writing hesham instead of "hesham" ?
2 Antworten
+ 7
@Bharath, I believe you should replace your print statement with return statement
def name (word):
return word
+ 1
def name(word):
print word
hesham ="hesham"
name(hesham)
in the end, a string has to be in quotes