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
# CptS 355 - Spring 2022 - Assignment 3 - Python | |
# Please include your name and the names of the students with whom you discussed any of the problems in this homework | |
# Name: | |
# Collaborators: | |
debugging = False | |
def debug(*s): | |
if debugging: |
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
# CptS 355 - Spring 2022 - Assignment 3 - Python | |
# Please include your name and the names of the students with whom you discussed any of the problems in this homework | |
# Name: | |
# Collaborators: | |
debugging = False | |
def debug(*s): | |
if debugging: |
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
class counter(): | |
def get_next(self): | |
while self.controller==True and self.i!=None: | |
try: | |
self.i=self.numbers.__next__() | |
except: | |
return None | |
self.controller=True |
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
student_dict = { | |
"student": ["Angela", "James", "Lily"], | |
"score": [56, 76, 98] | |
} | |
#Looping through dictionaries: | |
for (key, value) in student_dict.items(): | |
#Access key and value | |
pass |
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
aahed | |
aalii | |
aargh | |
aarti | |
abaca | |
abaci | |
abacs | |
abaft | |
abaka | |
abamp |
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
from tkinter import * | |
from time import * | |
from threading import Thread | |
# ---------------------------- CONSTANTS ------------------------------- # | |
PINK = "#e2979c" | |
RED = "#e7305b" | |
GREEN = "#9bdeac" | |
YELLOW = "#f7f5dd" | |
FONT_NAME = "Courier" | |
WORK_MIN = 25 |
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 | |
from random import * | |
from tkinter import * | |
from tkinter.messagebox import * | |
from string import * | |
from json import * | |
import pyperclip | |
from tkinter.simpledialog import * |
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
from tkinter import * | |
import pandas as pd | |
import csv | |
from random import * | |
from tkinter.messagebox import * | |
CARD_BACK_BACKGROUND_COLOR="#96C1AA" | |
BACKGROUND_COLOR = "#B1DDC6" | |
learning_language="French" | |
language_already_learned="English" | |
try: |
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
nums = [1,2,3,4] | |
#Output: [1,3,6,10] | |
def runningSum(self, nums) : | |
array = [0] | |
for i in nums: | |
array.append(i + array[-1]) | |
print(array) | |
array.remove(0) |
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
package com.company; | |
import java.util.*; | |
public class Main { | |
public static void main(String[] args) { | |
// write your code here | |
int [] arr= {10,5,2,3,5,4,3,7,8,9,1,0}; | |
int [] arrayer={5, 1, 22, 25, 6, -1, 8, 10}; |
OlderNewer