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
inp = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z', | |
'-','0','1','2','3','4','5','6','7','8','9'] | |
out = ['2','2','2','3','3','3','4','4','4','5','5','5','6','6','6','7','7','7','7','8','8','8','9','9','9','9', | |
'-','0','1','2','3','4','5','6','7','8','9'] |
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 Equation: | |
def __init__(self, terms, coeffs): | |
self.terms = terms | |
self.coeffs = coeffs | |
def __str__(self): | |
result = '' | |
for i in range(0, len(self.terms)): | |
if self.coeffs[i] > 0: | |
if i == 0: | |
result = result + str(self.coeffs[i]) |
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 Tkinter as tk | |
class Application(tk.Frame): | |
def __init__(self, master=None): | |
tk.Frame.__init__(self, master) | |
self.grid() | |
self.createWidgets() | |
def createWidgets(self): | |
labelFrame = tk.LabelFrame(text='Application Form') |
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.tinkeracademy.projects; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileReader; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.PrintWriter; |
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 time | |
import os | |
import pyaudio | |
import wave | |
import os | |
import platform | |
import time | |
twinkle = ['c', 'c', 'g', 'g', 'a', 'a', 'g', '<pause>', | |
'f', 'f', 'e', 'e', 'd', 'd', 'c', '<pause>', |
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.tinkeracademy.projects; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileReader; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.util.ArrayList; | |
import java.util.List; |
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
BWLKANRBBYPZYRGQ HICBYBLU FRN QJ RDFBINQUSHQNLFX KBLJCKOQVDVZFGEIYQSPSZ VWJGWUQRHOAAXZQPSWVEXSKSZAN |
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
l = [1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1] | |
sum = 0 | |
for n in l: | |
sum = sum + n | |
print "sum", sum |
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.tinkeracademy.projects; | |
import java.awt.Font; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import javax.swing.JButton; | |
import javax.swing.JOptionPane; | |
public class TicTacToe implements ActionListener { |
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.tinkeracademy.projects; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Stack; | |
public class ArithmeticParser { | |
public enum Operator { | |
ADD, |
NewerOlder