How can I print both result of a function and characters?
x = input("Write your number: ")
def fct1(n):
if n == 10:
print 'ten'
def apple(n):
return fct1(n) + 'apples'
apple(x)
In my printing message I want to see 'ten apples'.
What is the problem?
This is not about only "ten" case. I explained shortly. Let's say I have in fct1(n) ten values. The point is I want to see 'three apples' or 'six apples' depending on the number I write