Recent public codes are listed below. You can filter them by the following programming languages:
- view
- All
- Ada
- Assembler
- Assembler
- AWK (gawk)
- AWK (mawk)
- Bash
- bc
- Brainf**k
- C
- C#
- C++
- C++0x
- C99 strict
- CLIPS
- Clojure
- COBOL
- COBOL 85
- Common Lisp (clisp)
- D (dmd)
- Erlang
- F#
- Factor
- Falcon
- Forth
- Fortran
- Go
- Groovy
- Haskell
- Icon
- Intercal
- Java
- JavaScript (rhino)
- JavaScript (spidermonkey)
- Lua
- Nemerle
- Nice
- Nimrod
- Objective-C
- Ocaml
- Oz
- Pascal (fpc)
- Pascal (gpc)
- Perl
- Perl 6
- PHP
- Pike
- Prolog (gnu)
- Prolog (swi)
- Python
- Python 3
- R
- Ruby
- Scala
- Scheme (guile)
- Smalltalk
- SQL
- Tcl
- Text
- Unlambda
- VB.NET
- Whitespace
-
1 2 3 4 5 6 7 8 9
def ask_ok(prompt, retries=4, complaint='Yes or no, please!'): while True: ok = input(prompt) if ok in ('y', 'ye', 'yes'): return True if ok in ('n', 'no', 'nop', 'nope'): return False retries = retries - 1 if retries < 0:
...
-
1 2 3 4 5 6 7 8 9
def ask_ok(prompt, retries=4, complaint='Yes or no, please!'): while True: ok = input(prompt) if ok in ('y', 'ye', 'yes'): return True if ok in ('n', 'no', 'nop', 'nope'): return False retries = retries - 1 if retries < 0:
...
-
1 2 3 4 5 6 7 8 9
def ask_ok(prompt, retries=4, complaint='Yes or no, please!'): while True: ok = input(prompt) if ok in ('y', 'ye', 'yes'): return True if ok in ('n', 'no', 'nop', 'nope'): return False retries = retries - 1 if retries < 0:
...
-
1 2 3 4 5 6 7 8 9
x = int(input("Please enter an integer: ")) if x < 0: x = 0 print('Negative changed to zero') elif x == 0: print('Zero') elif x == 1: print('Single') else:
-
1 2 3 4 5 6 7 8 9
x = int(input("Please enter an integer: ")) if x < 0: x = 0 print('Negative changed to zero') elif x == 0: print('Zero') elif x == 1: print('Single') else:
-
1 2 3 4 5 6 7 8 9
x = int(input("Please enter an integer: ")) if x < 0: x = 0 print('Negative changed to zero') elif x == 0: print('Zero') elif x == 1: print('Single') else:
-
1 2 3 4 5 6 7 8 9
x = int(input("Please enter an integer: ")) if x < 0: x = 0 print('Negative changed to zero') elif x == 0: print('Zero') elif x == 1: print('Single') else:
-
1 2 3 4 5 6 7 8 9
x = int(input("Please enter an integer: ")) if x < 0: x = 0 print('Negative changed to zero') elif x == 0: print('Zero') elif x == 1: print('Single') else:
-
1 2 3 4 5 6 7 8 9
x = int(input("Please enter an integer: ")) if x < 0: x = 0 print('Negative changed to zero') elif x == 0: print('Zero') elif x == 1: print('Single') else:
-
1 2 3 4 5 6 7 8 9
x = int(input("Please enter an integer: ")) if x < 0: x = 0 print('Negative changed to zero') elif x == 0: print('Zero') elif x == 1: print('Single') else:
-
1 2 3 4 5 6 7 8 9
x = int(input("Please enter an integer: ")) if x < 0: ... x = 0 ... print('Negative changed to zero') ... elif x == 0: ... print('Zero') ... elif x == 1: ... print('Single')
...
-
1 2 3 4 5 6 7 8 9
x = int(input("Please enter an integer: ")) if x < 0: ... x = 0 ... print('Negative changed to zero') ... elif x == 0: ... print('Zero') ... elif x == 1: ... print('Single')
...
-
1 2 3 4 5 6 7 8 9
x = int(input("Please enter an integer: ")) >>> if x < 0: ... x = 0 ... print('Negative changed to zero') ... elif x == 0: ... print('Zero') ... elif x == 1: ... print('Single')
...
-
1 2 3 4 5 6 7 8 9
x = int(input("Please enter an integer: ")) Please enter an integer: >>> if x < 0: ... x = 0 ... print('Negative changed to zero') ... elif x == 0: ... print('Zero') ... elif x == 1: ... print('Single')
...
-
1 2 3 4 5 6 7 8 9
x = int(input("Please enter an integer: ")) Please enter an integer: 42 >>> if x < 0: ... x = 0 ... print('Negative changed to zero') ... elif x == 0: ... print('Zero') ... elif x == 1: ... print('Single')
...
-
1
print "Hello."
-
1 2 3 4
# Converts Fahrenheit to Celsius temp = float(input("Fahrenheit temperature: ")) print (temp) print("Celsius temperature: ", (temp - 32.0) * 5.0 / 9.0)
-
1 2 3 4
# Converts Fahrenheit to Celsius temp = float(input("Fahrenheit temperature: ")) print temp print("Celsius temperature: ", (temp - 32.0) * 5.0 / 9.0)
-
1 2 3
# Converts Fahrenheit to Celsius temp = float(input("Fahrenheit temperature: ")) print("Celsius temperature: ",temp, (temp - 32.0) * 5.0 / 9.0)
-
1 2 3
# Converts Fahrenheit to Celsius temp = float(input("Fahrenheit temperature: ")) print("Celsius temperature: ", (temp - 32.0) * 5.0 / 9.0)
-
1 2 3
# Converts Fahrenheit to Celsius temp = float(input("Fahrenheit temperature: ")) print("Celsius temperature: ", (temp - 32.0) * 5.0 / 9.0)
-
1 2 3 4 5
# This program calculates rate and distance problems print("Input a rate and a distance") rate = float(input("Rate: ")) distance = float(input("Distance: ")) print("Time: ", (distance / rate))
-
1 2 3 4 5
# This program calculates rate and distance problems print("Input a rate and a distance") rate = float(input("Rate: ")) distance = float(input("Distance: ")) print("Time: ", (distance / rate))
-
1 2 3 4 5
# This program calculates rate and distance problems print("Input a rate and a distance") rate = float(input("Rate: ")) distance = float(input("Distance: ")) print("Time: ", (distance / rate))
-
1 2 3 4 5
# This program calculates rate and distance problems print("Input a rate and a distance") rate = float(input("Rate: ")) distance = float(input("Distance: ")) print("Time: ", (distance / rate))
-
1 2 3 4 5 6 7 8
a = 123.4 b23 = 'Spam' first_name = "Bill" b = 432 c = a + b print("a + b is",c) print("first_name is",first_name) print("Sorted Parts, After Midnight or",b23)
-
1
print(''.join(map(chr, [82, 97, 119, 114, 32, 58, 51])))
-
1 2 3
print("Halt!") user_input = input("Who Goes there? ") print("You may pass, " + user_input)
-
1 2 3
print("Halt!") user_input = input("Who Goes there? ") print("You may pass, " + user_input)
-
1 2 3
print("Halt!") user_input = input("Who Goes there? ") print("You may pass, " + user_input)


