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
| from question_model import Question | |
| from data import question_data | |
| from quiz_brain import QuizBrain | |
| question_bank = [] | |
| for question in question_data: | |
| question_text = question["text"] | |
| question_answer = question["answer"] | |
| new_question = Question(q_text=question_text, q_answer=question_answer) | |
| question_bank.append(new_question) |
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
| from snake import Snake | |
| import time | |
| from turtle import Screen | |
| from food import Food | |
| from scoreboard import ScoreBoard | |
| screen = Screen() | |
| screen.setup(width=600, height=600) | |
| screen.bgcolor("black") | |
| screen.title("Snake Game") |
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
| from turtle import Screen | |
| from paddle import Paddle | |
| from ball import Ball | |
| import time | |
| from scoreboard import ScoreBoard | |
| # Step 1 - Create the screen | |
| screen = Screen() |
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 time | |
| from turtle import Screen | |
| from player import Player | |
| from car_manager import CarManager | |
| from scoreboard import Scoreboard | |
| screen = Screen() | |
| screen.setup(width=600, height=600) | |
| screen.tracer(0) |
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 turtle | |
| import pandas | |
| screen = turtle.Screen() | |
| screen.title("U.S.A States game") | |
| image = "blank_states_img.gif" | |
| screen.addshape(image) | |
| turtle.shape(image) |
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 math | |
| from tkinter import * | |
| # ---------------------------- CONSTANTS ------------------------------- # | |
| PINK = "#e2979c" | |
| RED = "#e7305b" | |
| GREEN = "#9bdeac" | |
| YELLOW = "#f7f5dd" | |
| FONT_NAME = "Courier" | |
| WORK_MIN = 25 |
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
| from tkinter import * | |
| from tkinter import messagebox | |
| from random import choice, shuffle, randint | |
| import pyperclip | |
| import json | |
| # ---------------------------- PASSWORD GENERATOR ------------------------------- # | |
| def generate_password(): |
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
| from tkinter import * | |
| import pandas | |
| import random | |
| BACKGROUND_COLOR = "#B1DDC6" | |
| current_card = {} | |
| to_learn = {} | |
| # ---------------------------- Step 2 - Create New Flash Cards ------------------------------- # | |
| try: |
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
| from data import question_data | |
| from question_model import Question | |
| from quiz_brain import QuizBrain | |
| from ui import QuizInterface | |
| question_bank = [] | |
| for question in question_data: | |
| question_text = question["question"] | |
| question_answer = question["correct_answer"] | |
| new_question = Question(question_text, question_answer) |
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 requests | |
| from datetime import datetime | |
| import smtplib | |
| import time | |
| MY_LAT = 51.507351 # Your latitude | |
| MY_LONG = -0.127758 # Your longitude | |
| MY_EMAIL = "sXXX@yahoo.com" | |
| MY_PASSWORD = "xxx" |