Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

draw a bow tie in python

num = int(input("Enter an odd number greater than 4: "))
center = (num - 1)//2
for row in range(num):
    nspaces = 2*abs(row - center)
    nstars = num - nspaces
    print nstars*'*' + 2*nspaces*' ' + nstars*'*'
Comment

PREVIOUS NEXT
Code Example
Python :: Randome Word generator from consonant, vowel and specific string 
Python :: space weather dashboard build your own custom dashboard to analyze and predict weather 
Python :: fb account api grabber 
Python :: directory corrente python 
Python :: emacs pipenv not working 
Python :: without @tf.function OOM 
Python :: The current Numpy installation fails to pass a sanity check due to a bug in the windows runtime. 
Python :: make a effective figure in python 
Python :: python event start from file funcion 
Python :: bolumden kalan python 
Shell :: git ignore permission changes 
Shell :: how to check if am using wayland 
Shell :: npm cache clean 
Shell :: brew install wine 
Shell :: mac restart audio driver 
Shell :: remove identifier files wsl2 
Shell :: conda install keras 
Shell :: nginx.service is not active, cannot reload. 
Shell :: git match remote master 
Shell :: error: failed to synchronize all databases (invalid or corrupted database (PGP signature)) 
Shell :: undo commit 
Shell :: how to convert ui to py pyqt5 
Shell :: flask restful install 
Shell :: conda install git 
Shell :: Failed to restart mongodb.service: Unit mongodb.service is masked. 
Shell :: find folder linux 
Shell :: git log graph 
Shell :: conda install requirements.txt example 
Shell :: count files in directory linux 
Shell :: avro for ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =