Skip to content

Instantly share code, notes, and snippets.

View wynand1004's full-sized avatar

Christian Thompson wynand1004

View GitHub Profile
@wynand1004
wynand1004 / star_trek_captains.py
Created December 4, 2017 01:34
A simple introduction / practice exercise to learn a little about Python lists.
import os
os.system("clear")
print("""
__ ___
(_ |_ _ _ | _ _|
__)|_(_|| || (-|(
""")
# 1) Create a list called captains and add the following names to it:
@wynand1004
wynand1004 / python_function_practice.py
Created November 8, 2017 05:07
Python Function Practice (Send and Return Values w/Booleans)
# Function Practice Send and Return Values w/Booleans
# Please create and call various functions as explained below.
import os
os.system("clear")
# 1
# Write a function that prints Doh! on the screen.
# Call the function print_doh
print("1\n")
def print_doh():
@wynand1004
wynand1004 / rock_paper_scissors.py
Last active December 30, 2017 03:49
Basic Rock Paper Scissors Program (No Loop)
#Janken with Loop Assignment Example by Christian Thompson
#Uses Random numbers 1-3 to represent Rock, Paper, Scissors
#Initialize
import os
import random
import time
#Declare variables
@wynand1004
wynand1004 / RPS_ASCII_Art.py
Created October 15, 2017 04:05
Rock, Paper, Scissors ASCII Art
# Rock Paper Scissors ASCII Art
# Rock
print("""
_______
---' ____)
(_____)
(_____)
(____)
---.__(___)
@wynand1004
wynand1004 / top_secret_decoder.py
Created October 10, 2017 00:05
Top Secret Decoder Practice
# Top secret decoder
# The CIA has discovered a plot against a major city
# SIGINT has intercepted a message with the location and date of the attack
# Unfortunately, the message is encoded.
# Due to your awesome Python skills, you have been hired to decode the message
# A double agent has provided the encoding scheme which is as follows:
# All numbers need to be changed to spaces
# All capital letters should be changed to *
# The lowercase letter q is equal to \n
# All other lowercase letters should be ignored.
@wynand1004
wynand1004 / Loop_Challenges.py
Created October 5, 2017 00:44
Seven Python Loop Challenges using Strings
# Loop Challenges
# Solution Video at https://youtu.be/RO7x4qPM8aY
# Subscribe to my YouTube Channel at https://www.youtube.com/channel/UC2vm-0XX5RkWCXWwtBZGOXg/playlists
# Follow me on Twitter @tokyoedtech
import os
os.system("clear")
print("1.")
# Create a loop that prints the string vertically
text = "abcdefghijklmnopqrstuvwxyz"