Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FUN: Rhombus With Python
#1
#rhombus sharp
#upward triangle

for i in range(12):
#form triangle
x=(i+1)*'*'
#addition of two triangle
print(x.rjust(17)+x)
print(" * Musa babalola *")
#downward triangle
x=12
while 0<=x:
#form triangle
z=x*"*"
#addition of two triangle
print(z.rjust(17)+z)
x-=1


@Dealwap


Possibly Related Threads...
Thread Author Replies Views Last Post
  FUN: Love Calculator With Python Mbabalawlar 0 66 01-06-2018, 09:56 PM
Last Post: Mbabalawlar
  TUTORIAL: My First Project Quiz In Python Programming Mbabalawlar 0 62 01-06-2018, 09:50 PM
Last Post: Mbabalawlar
  SHARED: Why Learn Python? cheatex 5 404 04-27-2017, 08:54 PM
Last Post: Horlahcoded
  Creating A Simple Random Username And Password Generator With Python Jolliano 4 581 01-01-2017, 10:58 PM
Last Post: Jolliano
  Python Program To Solve Quadratic Equation Dealwap 4 600 12-10-2016, 08:43 AM
Last Post: Dealwap
  Awesome Python Tricks A Beginner Should Know smartlord 8 614 12-04-2016, 01:48 PM
Last Post: Ahkohd
  How To Validate User's Input In Python Ahkohd 1 278 12-03-2016, 12:39 PM
Last Post: Dealwap
  Check If A Variable Is Defined Or Not In Python Ahkohd 0 228 12-03-2016, 09:42 AM
Last Post: Ahkohd
  Why You Should Learn Python As Your First Programming Language Dealwap 0 316 11-04-2016, 07:37 AM
Last Post: Dealwap
  Learn Python From Scratch Here On Nct Dealwap 8 704 11-02-2016, 04:50 PM
Last Post: Sakpobi Maro



Users browsing this thread: 1 Guest(s)

About Nigeria's Creative Talents

Nigeria's Creative Talents is an online community where every creative Nigerians can share ideas with themselves.

For any more information, please use our contact form.

              User Links

              Advertise