[ create a new paste ] login | about

jonlyles

Name:
Email:
Site/Blog:
Location:
Default language:
Favorite languages:
About:

Saved pastes by jonlyles:

Python, pasted on Nov 10:
1
print hex(255).upper()[2:]
view (1 line, 1 line of output)
Python, pasted on Nov 10:
1
print hex(255)[2:]
view (1 line, 1 line of output)
Python, pasted on Nov 9:
1
2
3
4
num_list=[4,5,5,4]

num_list = sorted(num_list)
print num_list
...
view (16 lines, 4 lines of output)
Python, pasted on Nov 9:
1
2
3
4
num_list=[4,5,5,4]

num_list = sorted(num_list)
print num_list
...
view (17 lines, 4 lines of output)
Python, pasted on Nov 9:
1
2
3
4
num_list=[3,5,1,9,55]

num_list = sorted(num_list)
print num_list
...
view (16 lines, 3 lines of output)
Python, pasted on Nov 9:
1
2
3
4
5
def count(sequence,item):
  count = 0
  for i in sequence:
    if i == item:
     count = count + 1
...
view (8 lines, 1 line of output)
Python, pasted on Nov 9:
1
2
3
4
5
def censor(text,word):
  list = text.split()
  counter = 0
  for i in list:
    if i == word:
...
view (12 lines, 1 line of output)
Python, pasted on Nov 9:
1
2
3
4
5
list = "this hack is whack hack".split()

counter = 0

for i in list:
...
view (13 lines, 1 line of output)
Python, pasted on Nov 9:
1
2
3
4
5
score = {"a": 1, "c": 3, "b": 3, "e": 1, "d": 2, "g": 2, 
         "f": 4, "i": 1, "h": 4, "k": 5, "j": 8, "m": 3, 
         "l": 1, "o": 1, "n": 1, "q": 10, "p": 3, "s": 1, 
         "r": 1, "u": 1, "t": 1, "w": 4, "v": 4, "y": 4, 
         "x": 8, "z": 10}
...
view (13 lines, 1 line of output)
Python, pasted on Nov 9:
1
2
3
4
5
def del_vowels(text):
  no_vowels = ""
  for i in text:
    if i not in "aeiou":
      no_vowels = no_vowels + i
...
view (9 lines, 1 line of output)
Python, pasted on Nov 9:
1
2
3
4
5
def reverse(text):
  word = ""
  l = len(text) - 1
  while l >= 0:
    word = word + text[l]
...
view (9 lines, 1 line of output)
C, pasted on Nov 21:
1
2
3
4
5
#include<stdio.h>

int main()
{
printf("hello, world");
...
view (8 lines, 1 line of output)