You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
beautiful-racket/beautiful-racket-demo/pythonesque-demo/test.rkt

27 lines
421 B
Racket

#lang pythonesque-demo
7 years ago
"escaped quote: middle \" and end \""
"escaped backslash: middle \\ and end \\"
7 years ago
def nothing():
42
7 years ago
def fortytwo():
return 42
7 years ago
def eightyfour():
return 84
def noop():
7 years ago
return "double dedent next"
7 years ago
nothing() # no output
7 years ago
if fortytwo() < eightyfour():
"left is less than right"
else:
7 years ago
"left is not less than right"
7 years ago
def last():
return 42
def noop():
7 years ago
return "double dedent next"