- 1
Help me with this question.how to input 1,2,3,4,5 in "A". How to multiply all no.****pls first read the question in discription.
https://www.hackerearth.com/practice/basic-programming/input-output/basics-of-input-output/practice-problems/algorithm/find-product/description/ https://code.sololearn.com/cC77o0X7C122/?ref=app
5 odpowiedzi
+ 3
Nuke, everything you need is well defined. And as you have done a complete python course you are able to solve this problem yourself. I am not sure what your attached code is meaning - sorry!
+ 2
Hi Nuke
I found myself with a bit of spare time, & your question has peaked my interest, so I played a bit.
I think numpy might help you with your answer, there is a good intro module on Sololearn.
I will attach a sample code for you to play with, but I suggest you spend the time to learn the basics first.
https://code.sololearn.com/cUytlZaVkh7K/?ref=app
+ 1
I agree with Lothar.
The instructions seem quite specific.
Try writing a code to suit each line of the instruction to get a feel of the result.
Then try to put it all together, I suspect range or a while loop may be involved.
Refer back to your python course & check out similar codes for inspiration.
PS: Your code looks to be trying to achieve a result too directly.
A bit like writing a book which says,"Once upon a time. The End".
Develop your logic.
Good luck
0
Sorry your answer doesn't help in anyway
Rik Wittkopp
Lothar
0
I don't like this aap 😞