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 csv | |
with open("decoderaaa.csv", mode='r') as inp: | |
reader = csv.reader(inp) | |
ring = {rows[0]:rows[1] for rows in reader} | |
file_name = input("Enter File Name: ") | |
input = open(file_name, 'r') | |
output = open("DECODED-" + file_name, 'w') |
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 re | |
import time | |
suffixes = ["jr.", "sr.", "i", "ii", "iii"] | |
# get the filename from the user | |
user_input = input("What file would you like to shorten? ") | |
# open file for reading |
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
package main | |
import ( | |
"os" | |
"bufio" | |
"fmt" | |
) | |
func main() { | |
scanner := bufio.NewScanner(os.Stdin) |