Monday, May 31, 2021

how to input list [] dynamic in python

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, 5, 6]

thanks in advance

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO%3D2VJnYm%2BELPAeRf6jhbQN3CETQCefK1FZQGho8E75M74BTBA%40mail.gmail.com.

No comments:

Post a Comment