This file contains 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 nextcord as discord | |
from dotenv import load_dotenv | |
import sys | |
import time | |
import textwrap | |
import os | |
load_dotenv() | |
TOKEN = os.getenv('DISCORD_TOKEN') | |
intents = discord.Intents.all() |
This file contains 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 | |
def predict(*nums, n): | |
ognummap = [0] * (len(nums) - 1) | |
pos = 0 | |
for i in range(len(nums)): | |
if pos >= len(nums) - 1: continue | |
ognummap[i] = nums[i + 1] - nums[i] | |
pos += 1 | |
values = {} | |
for i in range(len(ognummap)): |
This file contains 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 | |
data = {} | |
questions = [ | |
"Is it alive?", | |
"Is it real?", | |
"Can it bend without breaking?", | |
"Does it move?", | |
"Does it roll?", | |
"Is it mechanical?", | |
"Does it have a memory?", |
This file contains 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
reviews = [] | |
review = None | |
while review != "exit": | |
while True: | |
review = input("What is the next review? (or exit to exit with list) ") | |
if review == "exit": break | |
try: | |
review = int(review) | |
if not 5 >= review >= 0: print("Please enter an integer between 0 and 5") | |
else: break |
This file contains 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 as Turtle | |
def sequence(n): | |
steps = 0 | |
while n != 1: | |
if n % 2 == 0: | |
n = n / 2 | |
steps += 1 | |
else: | |
n = n*3 + 1 | |
steps += 1 |
This file contains 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
#!/usr/bin/env python3 | |
# Copyright (c) 2020-2022, NVIDIA CORPORATION. All rights reserved. | |
# | |
# NVIDIA CORPORATION and its licensors retain all intellectual property | |
# and proprietary rights in and to this software, related documentation | |
# and any modifications thereto. Any use, reproduction, disclosure or | |
# distribution of this software and related documentation without an express | |
# license agreement from NVIDIA CORPORATION is strictly prohibited. |
This file contains 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
#!/usr/bin/env python3 | |
# Copyright (c) 2020-2022, NVIDIA CORPORATION. All rights reserved. | |
# | |
# NVIDIA CORPORATION and its licensors retain all intellectual property | |
# and proprietary rights in and to this software, related documentation | |
# and any modifications thereto. Any use, reproduction, disclosure or | |
# distribution of this software and related documentation without an express | |
# license agreement from NVIDIA CORPORATION is strictly prohibited. |