fork download
  1. import math
  2. A=8
  3. f=.5
  4. l=30
  5. for i in range(l):
  6. print(int(A*math.cos(f*i)+A)*' '+'~')
Success #stdin #stdout 0.01s 9016KB
stdin
Standard input is empty
stdout
                ~
               ~
            ~
        ~
    ~
 ~
~
~
  ~
      ~
          ~
             ~
               ~
               ~
              ~
          ~
      ~
   ~
~
~
 ~
    ~
        ~
           ~
              ~
               ~
               ~
            ~
         ~
     ~