Message from Python discussions

November 2018

— Not sure I understand the question.

Why not save the image then send it?

Can you show your code?


X F(x)

1 1

2 12
3 123
4 1234
And so on

Need F(x)

— Really?

— Ya

— Can't you just see the simple pattern there?

— A simple for loop, show what you've already done by now

— Need one single function of x for such output

— Def f(x) :
Answer =''
For i in range(1,x):
Answer += x
Return Answer

— Full of syntax errors

— And please don't make others homework, let them think, then help in specific issues


def func(x):
if x==1: return x
return str(x)+str(func(x-1))

isn't it?

— Nope, well yes...
but recursion is not really needed