btw thanks you very much, Mr Derek and all
yes that is exercise basic in python, i'm newbie in python and i hope learn
djanggo, before i have try code looping
lst = []
# number of elemetns as input
n = int(input("Enter number of elements : "))
# iterating till the range
for i in range(0, n):
This does look a programming exercise in a class... if you ask these
questions in future, be warned people here will probably ask to see your
attempt at writing code first (otherwise you are not really learning to be
a programmer).
But, OK, it seemed interesting to me,so here is one approach:
how about if input like in below
1 ) input: 3 , return [1, 2, 3]
then continue dynamic
2) input: 2, return [2, 4, 3]
then continue dynamic
3) input: 6, return [3, 6, 6, 4, 5, 6]
then continue dynamic
4) input: 1, return [4, 6, 6, 4, 5, 6]
then continue dynamic
5) input: 1, return [5, 6, 6, 4,
hello i having question, because i still learn python for me, so can help
me
the question is
how about if input like in below
1 ) input: 3 , return [1, 2, 3]
2) input: 2, return [2, 4, 3]
3) input: 6, return [3, 6, 6, 4, 5, 6]
4) input: 1, return [4, 6, 6, 4, 5, 6]
5) input: 1, return [5, 6, 6
4 matches
Mail list logo