Skip to content

Instantly share code, notes, and snippets.

@digioz
Created December 7, 2015 19:29
Show Gist options
  • Save digioz/29b87faa4d8b720650bc to your computer and use it in GitHub Desktop.
Save digioz/29b87faa4d8b720650bc to your computer and use it in GitHub Desktop.
Python Test 1
from math import sin, cos, radians
import sys
def make_dot_string(x):
return ' '*int(10*cos(radians(x))+10) + 'o'
assert make_dot_string(90) == ' o'
assert make_dot_string(180) == 'o'
def main():
for i in range(1000000):
s = make_dot_string(i)
print(s)
if __name__ == "__main__":
sys.exit(int(main() or 0))
@Flubberx
Copy link

Thanks

@LeperGnome
Copy link

Thanks for help, but i dont really get how it works

@digioz
Copy link
Author

digioz commented Apr 7, 2016

Take a look at this video. It walks you through it: https://youtu.be/uZGZNEyyeKs

@ivaneliascl
Copy link

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment