Skip to content

Instantly share code, notes, and snippets.

Kiran Patel Chaitran77

Block or report user

Report or block Chaitran77

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
View __replit_main__
import random
import time
PROMPT = "--->"
ALLOWED_TABLES = (1, 12)
question = () # first element = first multiple, second element
answer = None
no_of_questions = 10 # or infinate unitl one wrong
no_correct_answers = 0
View __replit_main__
import random
import time
PROMPT = "--->"
ALLOWED_TABLES = (1, 12)
question = () # first element = first multiple, second element
answer = None
no_of_questions = 10 # or infinate unitl one wrong
no_correct_answers = 0
View main.py
import random
import pygame
from pygame.locals import *
pygame.init()
words = "inhabitant resign excitement introduce reserve cattle feminine flavor sleeve incapable athlete investigation rabbit access recognize vigorous freshman ceiling coyote baboon wombat aposemetic miracle linear unlike border plastic rebellion remark settlement voucher intention heaven dentist recognize intervention sleeve champion mushroom development".split()
wrong_attempts = 0
@Chaitran77
Chaitran77 / Guess the number game.py
Created Jul 27, 2017
Guess the number game created by chaitran77 - https://repl.it/I6bK/315
View Guess the number game.py
import time
import random
import datetime
# number = random.randint(0,100) <-- this is commented out because it will only generate a random number 1'ce
# every time loop() is run, number needs to be redifined. Better to define in loop(). Can't globalise number.
prompt = ">>>"
gu_num = 0
round = 1 # this is fine because built-in round will not be used
counter = 10
highscores = []
@Chaitran77
Chaitran77 / Guess the number game.py
Created Jul 26, 2017
Guess the number game created by chaitran77 - https://repl.it/I6bK/308
View Guess the number game.py
import random
import datetime
number = random.randint(0,100)
prompt = ">>>"
gu_num = 0
round = 1 # this is fine because built-in round will not be used
counter = 10
highscores = []
@Chaitran77
Chaitran77 / Eylp-70.py
Created Jan 21, 2017 — forked from anonymous/Eylp-70.py
null created by chaitran77 - https://repl.it/Eylp/70
View Eylp-70.py
from datetime import datetime
def close():
input("\n\nPress the enter key to exit.")
ages = {"age1": 0}
currentyear = datetime.now().year
currentmonth = datetime.now().month
currentday = datetime.now().day
You can’t perform that action at this time.