Python Forum
Beginner problem, replace function with for loop
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Beginner problem, replace function with for loop
#5
(Sep-11-2019, 01:38 PM)buran Wrote: then loop over it and use if-elif block to check what color is and how many points to add
You're right, I can tell I'm overthinking things. Can you give some example code of what the for loop and if-elif block would look like? I have learned a lot through other responses, but I'm trying to understand the most basic answer that the challenge is asking for.
Reply


Messages In This Thread
RE: Beginner problem, replace function with for loop - by Motley_Cow - Sep-12-2019, 02:14 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  problem program runs in a loop jasserin 0 150 May-18-2024, 03:07 PM
Last Post: jasserin
  While Loop Problem Benno2805 1 614 Sep-06-2023, 04:51 PM
Last Post: deanhystad
  Replace for loop to search index position illmattic 5 1,370 Sep-03-2022, 04:04 PM
Last Post: illmattic
  Loop reading csv file problem faustineaiden 1 1,621 Dec-11-2021, 08:40 AM
Last Post: ibreeden
  small beginner problem FelixReiter 2 1,917 Nov-17-2020, 03:26 PM
Last Post: FelixReiter
  Infinite loop problem Zirconyl 5 3,076 Nov-16-2020, 09:06 AM
Last Post: DeaD_EyE
  Exit Function - loop Tetsuo30 2 2,120 Sep-17-2020, 09:58 AM
Last Post: Tetsuo30
  Beginner having Syntax Error problem RyanHo 3 2,439 Sep-10-2020, 08:33 AM
Last Post: cnull
  Dataframe mean calculation problem: do we have to loop? sparkt 1 2,220 Aug-28-2020, 02:41 PM
Last Post: sparkt
  basic random number generator in replace function krug123 2 2,094 Jul-31-2020, 01:02 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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