Skip to content

Instantly share code, notes, and snippets.

View Kwisses's full-sized avatar

John Kwisses Kwisses

View GitHub Profile
@Kwisses
Kwisses / Challenge_1_Challenge_1_easy_save
Last active March 9, 2016 01:39
[Daily Challenge #1 - Easy] - Information Return - r/DailyProgrammer
Your name is John, you are 22 years old, and your username is Kwistech
@Kwisses
Kwisses / Challenge_2_easy.py
Last active March 9, 2016 00:58
[Daily Challenge #2 - Easy] - Calculator App - r/DailyProgrammer
# ***** DAILY CHALLENGE #2 - Easy *****
# Hello, coders! An important part of programming is being able to apply your programs, so your challenge for today is
# to create a calculator application that has use in your life. It might be an interest calculator, or it might be
# something that you can use in the classroom.
#
# For example, if you were in physics class, you might want to make a F = M * A calc.
#
# EXTRA CREDIT: make the calculator have multiple functions! Not only should it be able to calculate
# F = M * A, but also A = F/M, and M = F/A!
@Kwisses
Kwisses / Challenge_3_easy.py
Created March 3, 2016 02:53
[Daily Challenge #3 - Easy] - Caesar Cipher - r/DailyProgrammer
# ***** DAILY CHALLENGE #3 - Easy *****
# Welcome to cipher day!
# Write a program that can encrypt texts with an alphabetical caesar cipher.
# This cipher can ignore numbers, symbols, and whitespace.
#
# for extra credit, add a "decrypt" function to your program!
# ---------------------------------------------------------------------------------------------------------------------
from string import ascii_lowercase
@Kwisses
Kwisses / Challenge_4_easy.py
Created March 3, 2016 03:13
[Daily Challenge #4 - Easy] - Password Generator - r/DailyProgrammer
# ***** Daily Challenge #4 - Easy *****
# You're challenge for today is to create a random password generator!
# For extra credit, allow the user to specify the amount of passwords to generate.
# For even more extra credit, allow the user to specify the length of the strings he wants to generate!
# ---------------------------------------------------------------------------------------------------------------------
from random import sample
@Kwisses
Kwisses / Challenge_5_Challenge_5_easy.py
Last active March 5, 2016 00:47
[Daily Challenge #5 - Easy] - Password Protected - r/DailyProgrammer
# ***** DAILY CHALLENGE #5 - EASY *****
# Your challenge for today is to create a program which is password protected, and wont open unless the correct user
# and password is given.
#
# For extra credit, have the user and password in a separate .txt file.
#
# For even more extra credit, break into your own program :)
# ---------------------------------------------------------------------------------------------------------------------
@Kwisses
Kwisses / Challenge_6_easy.py
Created March 4, 2016 02:22
[Daily Challenge #6 - Easy] - Pi to 30 Decimals? - r/DailyProgrammer
# ***** DAILY CHALLENGE #6 - EASY *****
# You're challenge for today is to create a program that can calculate pi accurately to at least 30 decimal places.
# Try not to cheat :)
# ---------------------------------------------------------------------------------------------------------------------
# Is this cheating?
import math
@Kwisses
Kwisses / Challenge_7_easy.py
Last active March 5, 2016 00:49
[Daily Challenge #7 - Easy] - Morse Code Translator - r/DailyProgrammer
# ***** DAILY CHALLENGE #7 - EASY *****
# Write a program that can translate Morse code in the format of ...---...
# A space and a slash will be placed between words. ..- / --.-
#
# For bonus, add the capability of going from a string to Morse code.
# Super-bonus if your program can flash or beep the Morse.
#
# This is your Morse to translate:
# .... . .-.. .-.. --- / -.. .- .. .-.. -.-- / .--. .-. --- --. .-. .- -- -- . .-. / --. --- --- -.. / .-.. ..- -.-. -.-
@Kwisses
Kwisses / Challenge_8_easy.py
Created March 4, 2016 19:02
[Daily Challenge #8 - Easy] - 99 Bottles of Beer on the Wall - r/DailyProgrammer
# ***** DAILY CHALLENGE 8 - EASY *****
# Write a program that will print the song "99 bottles of beer on the wall".
#
# for extra credit, do not allow the program to print each loop on a new line.
# ---------------------------------------------------------------------------------------------------------------------
def bottles_song():
@Kwisses
Kwisses / Challenge_9_easy.py
Last active March 5, 2016 00:49
[Daily Challenge #9 - Easy] - Alphabet/Numerical Orderer - r/DailyProgrammer
# ***** DAILY CHALLENGE #9 - EASY *****
# Write a program that will allow the user to input digits, and arrange them in numerical order.
# 1.234 5 40 3
# for extra credit, have it also arrange strings in alphabetical order.
# ---------------------------------------------------------------------------------------------------------------------
def num_orderer(numbers):
@Kwisses
Kwisses / Challenge_10_easy.py
Created March 4, 2016 22:22
[Daily Challenge #10 - Easy] - Phone Number Validator - r/DailyProgrammer
# ***** DAILY CHALLENGE #10 - EASY *****
# The exercise today asks you to validate a telephone number, as if written on an input form.
# Telephone numbers can be written as ten digits, or with dashes, spaces, or dots between the three segments,
# or with the area code parenthesized; both the area code and any white space between segments are optional.
# Thus, all of the following are valid telephone numbers: 1234567890, 123-456-7890, 123.456.7890,
# (123)456-7890, (123) 456-7890 (note the white space following the area code), and 456-7890.
# The following are not valid telephone numbers: 123-45-6789, 123:4567890, and 123/456-7890.
#
# source: programmingpraxis.com