Python Forum
Pyramid of leters of n levels
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pyramid of leters of n levels
#3
Well, I haven't tried coding it yet but i've been thinking about making making a for statement that then compares de i so it can enter trough multiple if cases and then print them. Something like


control = int(input())
for i in range (1, control+1):
    if i == 1:
       print('      A      ')
    if i == 2:
       print('    A B A    ')
and so on
Reply


Messages In This Thread
Pyramid of leters of n levels - by DanyMont1505 - Sep-26-2019, 04:48 PM
RE: Pyramid of leters of n levels - by metulburr - Sep-26-2019, 04:53 PM
RE: Pyramid of leters of n levels - by DanyMont1505 - Sep-26-2019, 05:26 PM
RE: Pyramid of leters of n levels - by jefsummers - Sep-26-2019, 06:30 PM
RE: Pyramid of leters of n levels - by woooee - Sep-27-2019, 07:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  print a * pyramid drogers10940 5 4,837 Apr-26-2020, 09:25 PM
Last Post: prothej227
  Pyramid gamingingrs 1 2,335 Oct-16-2018, 02:56 PM
Last Post: j.crater
  Divide a number - Multiple levels - Sum of all numbers equal to input number pythoneer 17 9,049 Apr-20-2018, 04:07 AM
Last Post: pythoneer
  Pyramid of Solitaires qwerty 1 3,530 Mar-22-2017, 04:10 PM
Last Post: nilamo
  Implementation Pyramid Solitaire qwerty 2 5,160 Feb-27-2017, 11:57 AM
Last Post: qwerty

Forum Jump:

User Panel Messages

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