forked from VoR0220/Artificial-Intelligence-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhw2.py
More file actions
36 lines (26 loc) · 777 Bytes
/
Copy pathhw2.py
File metadata and controls
36 lines (26 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Assign2.py
#
# Class: CSCI 490-B3
# Program: Assignment 2
# Author: RJ Catalano
# Z-number: z1716703
# Date Due: 02/11/2015
# Purpose: Read in file from command line, append .txt if not already there, assign points to each record line (treat upper and lower case letters the same),
# print out score for each input record, lined up in neat order
# Execution: ./hw2.exe
#
# Notes: (optional) any special notes to your T.A. or other readers
#
#
import sys
#need to define a dictionary and somehow store values into it.
for eachArg in sys.argv:
print (eachArg)
filename = sys.argv[1]
txt = ".txt"
if '.' not in filename:
filename += txt
print ("File name is ", filename)