This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
b = int(input("please enter an integer:\n")) | |
print ("The divisors for " + str(b) + " are: ") | |
for i in range(1,b+1): | |
if b%i==0: | |
print(i) | |
x = [i for i in range(1,b+1) if b%i==0] | |
print("here is a list of your divisors for " + str(b) + ":\n" + str(x)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
def new(): | |
x = random.randint(1,9) | |
return x | |
def game(x,n,y): | |
while True: | |
g = (input("guess: ")) | |
if g == "exit": | |
print("game over.") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
#Excercise 18: Cows and Bulls Game | |
''' | |
This is the given example for what the __main__ method does: | |
def square(num): | |
return num * num | |
if __name__=="__main__": | |
user_num = input("Give me a number: ") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "OhioStakePool", | |
"description": "Ohio Stake Pool", | |
"ticker": "OHIO", | |
"homepage": "https://ohiopool.app" | |
} |