fork download
  1. for y in range(15, -15, -1):
  2. line = ""
  3. for x in range(-30, 30):
  4. f = ((x * 0.05) ** 2 + (y * 0.1) ** 2 - 1) ** 3 - (x * 0.05) ** 2 * (y * 0.1) ** 3
  5. if f <= 0:
  6. line += "*"
  7. else:
  8. line += " "
  9. print(line)
  10.  
Success #stdin #stdout 0.03s 9400KB
stdin
Standard input is empty
stdout
                                                            
                                                            
                                                            
                *********           *********               
            *****************   *****************           
          *****************************************         
         *******************************************        
        *********************************************       
        *********************************************       
        *********************************************       
        *********************************************       
        *********************************************       
        *********************************************       
         *******************************************        
          *****************************************         
          *****************************************         
            *************************************           
             ***********************************            
              *********************************             
                *****************************               
                  *************************                 
                    *********************                   
                       ***************                      
                          *********                         
                             ***                            
                              *