Python Forum
Nested Loop to Generate Triangle
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Nested Loop to Generate Triangle
#4
I think you want the first loop to be over range(base_size), and the second loop to be over range(rows). But as nilamo says, a better idea of the expected output would help.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Nested Loop to Generate Triangle - by Babbare - May-25-2017, 04:13 PM
RE: Nested Loop to Generate Triangle - by buran - May-25-2017, 04:45 PM
RE: Nested Loop to Generate Triangle - by nilamo - May-26-2017, 08:39 PM
RE: Nested Loop to Generate Triangle - by ichabod801 - May-26-2017, 09:21 PM
RE: Nested Loop to Generate Triangle - by nilamo - May-28-2017, 03:17 AM
RE: Nested Loop to Generate Triangle - by buran - May-28-2017, 06:43 AM
RE: Nested Loop to Generate Triangle - by Babbare - May-28-2017, 06:01 PM
RE: Nested Loop to Generate Triangle - by buran - May-28-2017, 07:25 PM
RE: Nested Loop to Generate Triangle - by wavic - May-28-2017, 07:53 PM
RE: Nested Loop to Generate Triangle - by Babbare - May-29-2017, 12:33 AM
RE: Nested Loop to Generate Triangle - by buran - May-29-2017, 05:00 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Bug Need help on this nested loop task PP9044 4 4,746 Apr-16-2021, 01:31 PM
Last Post: perfringo
  How to write a recursion syntax for Sierpinski triangle using numpy? Bolzano 2 3,954 Apr-03-2021, 06:11 AM
Last Post: SheeppOSU
  Print user input into triangle djtjhokie 1 2,482 Nov-07-2020, 07:01 PM
Last Post: buran
  Tkinter - The Reuleaux Triangle andrewapk 1 2,019 Oct-06-2020, 09:01 PM
Last Post: deanhystad
  Python - networkx - Triangle inequality - Graph Nick_A 0 2,149 Sep-11-2020, 04:29 PM
Last Post: Nick_A
  Triangle function program m8jorp8yne 2 8,993 Dec-13-2019, 05:24 PM
Last Post: Clunk_Head
  Print triangle using while loop tuxandrew 3 5,059 Dec-05-2019, 07:17 PM
Last Post: micseydel
  Nested if stmts in for loop johneven 2 5,956 Oct-19-2019, 04:05 AM
Last Post: xeedon
  Intersection of a triangle and a circle Gira 3 3,693 May-19-2019, 06:04 PM
Last Post: heiner55
  Nested for loop issue always using index 0 searching1 2 2,644 Dec-30-2018, 09:17 AM
Last Post: searching1

Forum Jump:

User Panel Messages

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