Skip to content

Instantly share code, notes, and snippets.

kstampo

Block or report user

Report or block kstampo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kstampo
kstampo / Ch3-Collatz.py
Last active Oct 22, 2017
Automate the boring stuff with Python
View Ch3-Collatz.py
def collatz(number):
if number%2==0:
#print (number//2)
return number//2
else:
#print (3*number+1)
return 3*number+1
try:
print ("Enter a number", end=" ")
You can’t perform that action at this time.