• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Write a function factorial_list(Arr) in Python, which accepts a list Arr of numbers and return the list of factorial of each value

Resolved: Write a function factorial_list(Arr) in Python, which accepts a list Arr of numbers and return the list of factorial of each value

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

Output Example:-
Edit*= sorry forgot to give what have i done so far:-
here is my output:
which is not my desired output what should I do to get it in my list form??

Answer:

Output:
Edit (suggested by Daniel Hao):
To make this more efficient, we could use a list comprehension in the factorial_list function:

If you have better answer, please add a comment about this, thank you!

python
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: correct policy to get secrets on local go app

22/03/2023

Resolved: Vue 3 watchEffect dependency tracking after asynchronous code

22/03/2023

Resolved: Watching state object in pinia doesn’t fire when object changes

22/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.