I'm a beginner at Python.

Asked 2 years ago, Updated 2 years ago, 14 views

(Input value 1: 12345) / Input value 2 : 5) In , input value 1 is [1,2,3,4,5] I'll make a list I'm making a program where I add the number on this list to get input value 2 It's so hard. Anyone know how to do it?

Input Example 123 (0<=x<=10) 3 (0<=x<=10)

Output example [1,2] [2,1]

Input Example 352 (0<=x<=10) 8 (0<=x<=10)

Output example [3,5] [5,3]

I came in today. Please understand if the problem is too easy. ㅠ<

python

2022-09-22 10:33

1 Answers

Hashcode is not a site that does homework instead.

Please make the code yourself and ask me which part you don't know.


2022-09-22 10:33

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.