j-afarian / Scripting

Collection of Perl & Python projects and scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scripting Projects

Unimpressed Bitmoji
This repo contains a collection of perl & python projects I have worked on as part of my university subjects & just general practice. There are also some notes and code snippets from weekly tutorials as well. Feel free to comment and give me tips, corrections, or suggestion if you feel like it.

Perl

Tutorial Questions

What day is it?
The first Monday of the month is randomly generated between 1 & 7 (inclusive). The user inputs any date number between 1 and 31 and the day of the week is output (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday).

Weekly Snippets

Week Two
Arrays, lists, and hashes.

Week Three
File handling, subroutines, and special variables.

Week Four
Regular expressions, formats, and references.

Week Five
Data Structures. Also see Extra Files for this week.

Week Six
Object-Oriented Programming. Also see Extra Files for this week.

Weekly Labs

Week Three
Q1: Script to determine if there are any duplicate values in an array.
Q2: Script to return the first non-repeating character in a string.
Q3: Script which accepts three items and prints them along with the current date to a file.

Week Four
Q1: Answers to basic questions.
Q2: Script which reads the contents of the /etc/passwd file and lists all users with the name "Smith" in their username or password.
Q3: Refactored lab from week three (Q3) to use subroutines.

Assignment One

Perl Comparison Scripts

Python

Weekly Snippets

Week Seven
Introduction to Python. Also see Extra Files for this week.

Week Eight
Data types, functions and Python data model, and exceptions.

Weekly Labs

Week Seven
Q1: Text questions
Q2: Text Questions

Week Eight
Q1: Script which takes a number between 1-365 and returns the Month / Day of a non-leap year.

About

Collection of Perl & Python projects and scripts


Languages

Language:Perl 60.1%Language:Python 39.9%