sir I did the NUMFACT question in python 3.I GOT correct answers but here I’m getting runtime error.PLEASE SEE THIS.THANKS
for m in range(1,t+1):
for i in range(1,subt+1):
for i in range (1,num+1):
Bro your method to take input is wrong.
If you want to take single line multiple value input you cannot use for loop, you must use map().
3 5 7
2 4 6
In this input if you want to take 3 5 7 you cannot just code
for i in range(1,4):
This is a wrong call which is leading to error, you have to take input in this manner,
Now as you are multiplying every number in a you can use for loop as
for i in a:
I have updated your code you may have a look at it here: p9ZSeX - Online Python3 Interpreter & Debugging Tool - Ideone.com
Hope you understood…
You may read about split() here : String split formatting in python 3 - Stack Overflow
EDIT: Okay i am sorry, there is a problem with this line
In python 3 map returns iterator instead of list so you must replace this line with
Sorry for the inconvenience…!!.