Some Python Code Snippets from CodeCademy. This would only include project files and will keep adding as I go.
-
Updated
Aug 18, 2019 - Python
Some Python Code Snippets from CodeCademy. This would only include project files and will keep adding as I go.
Practice exercise for Python 3 classes. "You’ve started position as the lead programmer for the family-style Italian restaurant Basta Fazoolin’ with My Heart. The restaurant has been doing fantastically and seen a lot of growth lately. You’ve been hired to keep things organized."
Code examples for classes in Python 2. From Codecademy course.
unique_english_letters takes a string word as a parameter. The function should return the total number of unique letters in the string. Uppercase and lowercase letters should be counted as different letters. The list of every uppercase and lower case letter in the English alphabet is in a string "letters".
This is a personal repo for E-Learning courses I've done.
Build a simplified, one-player version of the classic board game Battleship with Python 2. There will be a single ship hidden in a random location on a 5x5 grid. The player will have 4 guesses to try to sink the ship. Codecademy practice project.
Practice problems in Python 2 from Codecademy. The goal is to apply programming skills to real life problems.
Basic Codecademy practice exercise. You are a teacher. Your students just took their first test. It’s time to see how everyone did. Let’s write a program to compute the mean, variance, and standard deviation of the test scores.
substring_between_letters() takes a string named _word_, a single character named _start_, and another character named _end_. This function should return the substring between the first occurrence of _start_ and _end_ in word. If _start_ or _end_ are not in _word_, the function should return _word_. For example, substring_between_letters("apple"…
exponents() takes two lists as parameters named bases and powers. It returns a new list containing every number in bases raised to every number in powers. For example with exponents([2, 3, 4], [1, 2, 3]) the result would be the list [2, 4, 8, 3, 9, 27, 4, 16, 64] because it would first include the three solutions for base 2 [(2**1), (2**2) and (…
Includes projects that are a part of the Python 2 course on Codecademy.
larger_sum() takes two lists of numbers as parameters named lst1 and lst2. It returns the list whose elements sum to the greater number. If the sum of the elements of each list are equal, it returns lst1.
function every_other_letter() takes a string named _word_ as a parameter. The function returns a string containing every other letter in word.
Codecademy Learn Intermediate Python: The Nile project.
10 Python Code Challenges for Beginners from Codecademy
-Codecademy- In Build Chatbots with Python, we’ll take you from being a complete Python beginner to creating chatbots with deep learning. Say hello to your next cutting-edge skill.
# max_num() has three parameters named num1, num2, and num3. The function should return the largest of these three numbers. If any of two numbers tie as the largest, you should return "It's a tie!".
check_for_name() takes two strings as parameters named _sentence_ and _name_. The function should return _True_ if _name_ appears in sentence in all lowercase letters, all uppercase letters, or with any mix of uppercase and lowercase letters. The function should return _False_ otherwise.
Bitwise operations are operations that directly manipulate bits. Notes and code examples from Codecaemy course Learn Python 2.
Add a description, image, and links to the codecademy topic page so that developers can more easily learn about it.
To associate your repository with the codecademy topic, visit your repo's landing page and select "manage topics."