This file contains 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
Your name is John, you are 22 years old, and your username is Kwistech |
This file contains 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
# ***** 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! |
This file contains 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
# ***** 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 |
This file contains 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
# ***** 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 | |
This file contains 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
# ***** 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 :) | |
# --------------------------------------------------------------------------------------------------------------------- |
This file contains 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
# ***** 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 | |
This file contains 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
# ***** 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: | |
# .... . .-.. .-.. --- / -.. .- .. .-.. -.-- / .--. .-. --- --. .-. .- -- -- . .-. / --. --- --- -.. / .-.. ..- -.-. -.- |
This file contains 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
# ***** 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(): |
This file contains 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
# ***** 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): |
This file contains 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
# ***** 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 |
OlderNewer