Monday, May 31, 2021

Re: how to input list [] dynamic in python

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

thanks


Pada tanggal Sen, 31 Mei 2021 pukul 18.20 paidjoo indo <leoadityo@gmail.com> menulis:
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%3D2VJnpOCPDFRO2G9DgBdpTK5mqFUXEW%3DjazfeJb9Lr2uL_vQ%40mail.gmail.com.

No comments:

Post a Comment