Python Forum
printing patterns and stars?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
printing patterns and stars?
#3
Simple example:

In [14]: for i in range(1, 30, 2):
    ...:     print('*' * i)
    ...:     
*
***
*****
*******
*********
***********
*************
***************
*****************
*******************
*********************
***********************
*************************
***************************
In [15]: print('oh, yes! ' * 10)

oh, yes! oh, yes! oh, yes! oh, yes! oh, yes! oh, yes! oh, yes! oh, yes! oh, yes! oh, yes! 
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
printing patterns and stars? - by msa969 - Feb-21-2017, 08:04 AM
RE: printing patterns and stars? - by j.crater - Feb-21-2017, 08:08 AM
RE: printing patterns and stars? - by wavic - Feb-21-2017, 08:39 AM
RE: printing patterns and stars? - by ichabod801 - Feb-22-2017, 02:03 AM
RE: printing patterns and stars? - by wavic - Feb-22-2017, 02:13 AM
RE: printing patterns and stars? - by ichabod801 - Feb-22-2017, 02:25 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  help me to find turtle codes for those patterns hammza 0 1,487 May-12-2020, 12:14 PM
Last Post: hammza

Forum Jump:

User Panel Messages

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