Python Forum
Python for loops giving error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python for loops giving error
#3
No, I just want to multiply every single value inside the list with each other.
For example [4,2,2,6] => gives 96 as answer. And for that, I introduce the function tool and reduce to multiply all the values.
But what I really want to do is read the whole thing as one single code and get the answers. And the possible answers are given above such as 96, 128...
Reply


Messages In This Thread
Python for loops giving error - by Petrus - Jan-07-2019, 10:01 PM
RE: Python for loops giving error - by xhughesey - Jan-07-2019, 10:18 PM
RE: Python for loops giving error - by Petrus - Jan-07-2019, 10:56 PM
RE: Python for loops giving error - by perfringo - Jan-08-2019, 05:37 AM
RE: Python for loops giving error - by Petrus - Jan-08-2019, 10:23 AM
RE: Python for loops giving error - by Petrus - Jan-08-2019, 11:38 AM
RE: Python for loops giving error - by perfringo - Jan-08-2019, 11:58 AM
RE: Python for loops giving error - by Petrus - Jan-08-2019, 12:29 PM
RE: Python for loops giving error - by perfringo - Jan-08-2019, 12:48 PM
RE: Python for loops giving error - by Petrus - Jan-08-2019, 01:24 PM
RE: Python for loops giving error - by perfringo - Jan-08-2019, 01:48 PM
RE: Python for loops giving error - by Petrus - Jan-08-2019, 02:27 PM
RE: Python for loops giving error - by Petrus - Jan-09-2019, 08:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  New to python! Loops Seeley307 3 62,184 May-15-2020, 02:27 PM
Last Post: ibreeden
  Error in loops, new to Python jhall710 20 12,396 Apr-25-2017, 05:18 AM
Last Post: smbx33

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020