![]() ![]()
Emacs changes the indentation to appropriate locations when you hit Tab on an indented line.Emacs indents lines following for and if statements automatically.Emacs highlights variables and constants differently from Python keywords. #Emacs save code#You may recognize this code as the Sieve of Eratosthenes, which finds all primes below a given maximum. #Emacs save download#You can download all the files referenced in this tutorial at the link below:ġ MAX_PRIME = 100 2 3 sieve = * MAX_PRIME 4 for i in range ( 2, MAX_PRIME ): 5 if sieve : 6 print ( i ) 7 for j in range ( i * i, MAX_PRIME, i ): 8 sieve = False #Emacs save update#
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |