L.O.A.S.H’S ECO SWITCH: Reusable Bags

Quote of TRUTH“The Earth is a fine place and worth fighting for.” – 

Sup, my eco-peeps, back again with an ECO SWITCH. Heck yeah. Let’s get this party rolling. Parrttyyy. Okay, serious game face. seriousness.

dot. dot. dot.

Single-use plastic bags = NO!!!! Food, food is good. It’s necessary. It’s yummy. It’s the essence of- okay, let’s get back to the point. Remember those plastic bags that we use? The ones we use for like food, groceries, vegetables, and other stuff? Yeah, we kind of need to change it up. Like ASAP, ASAP. Did you know that there are billions (it’s a pretty big number) of plastic bags being consumed yearly?? Plastic bags win the majority of grocery bags in the United States alone. Estimated only 1 out of 200 plastic bags we use get recycled. In coastal cleanups, there are so many plastic bags popping up. Dude, it’s not good. at all.

How do you switch this up? Invest in a reusable bag! Stay committed by always remembering to bring this bag with you when you go grocery or someplace else. To get your own eco plastic bag switch, one option would be to get it from your local grocery store. Sometimes they do sell reusable, durable bags! There are other places you could order from, too. Another option for you could be to purchase one from these links:

 

Reusable Shopping Bags

 


These reusable bags are durable, compact, washable, and can fit a good amount of groceries in them. Click here or the image to check them out!

 


 

 

 


 

Screen Shot 2020-01-18 at 20.37.07.png
Reusable Shopping Bag w/ Wheels

 


This is better for when you have heavier and more groceries with you. When you aren’t using it, it can be folded! It’s a great size and good quality. Click here or the image to check them out!

 

 


 

Screen Shot 2020-01-18 at 20.48.56.png
Reusable Mesh Produce Bags

 



These are amazing for vegetables and fruits and moreeee! They are durable, eco-friendly, see-through, and breathable. Instead of grabbing those one-time-use plastic they have, use these ones instead. You can even clean the veggies with the bags, too! Click here or the image to check them out!

 

 


 

invest. commit. share.

🙂

 

Yours truly,

L.O.A.S.H


© Elizabeth Anne Villoria

PROject Python: Hangman Game!

Quote of AWESOMENESS: “First, solve the problem. Then, write the code.” ~ John Johnson

Yup, I know, this is like the fourth blog in a row that relates to Python. BUT, it’s okay! This one is really fun. The program we will be making today is Hangman. The code is shown below:


import random

def print_game_rules(max_incorrect,word_len):
    print("This game we will be playing hangman!")

def display_figure(bad_guesses):
    gallows = (
        """
            +----------+
            |
            |
            |
            |
            |
        ================
        """,
        """
            +----------+
            |          o
            |
            |
            |
            |
        ================
        """,
        """
            +----------+
            |          o
            |          +---
            |
            |
            |
        ================
        """,
        """
            +----------+
            |          o
            |       ---+---
            |
            |
            |
        ================
        """,
        """
            +----------+
            |          o
            |       ---+---
            |          |
            |
            |
        ================
        """,
        """
            +----------+
            |          o
            |       ---+---
            |          |
            |         /
            |        /
        ================
        """,
        """
            +----------+
            |          o
            |       ---+---
            |          |
            |         / \
            |        /   \
        ================
        """
    )
    print(gallows[bad_guesses])
    return()

def prompt_for_letter():
    print("")
    player_guess = str(input("Guess a letter in the mystery word: "))
    player_guess = player_guess.strip()
    player_guess = player_guess.lower()
    print("")
    return(player_guess)

animal_words = ("horse", "mall", "desktop", "apple", "earth", "tree", "sun", "can", "love", "dog", "door", "house", "mansion", "beach", "computer", "window", "keyboard", "airplane", "hotel", "cat")
theword = random.choice(animal_words)
word_len = len(theword)
letterguess = word_len * ["_"]
max_incorrect = 6
alphabet = ("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z")
letters_tried = []
number_guesses = 0
letters_correct = 0
incorrect_guesses = 0
###############################
# PROCESSING SECTION
# Branching code: if/else
# Looping code: for-loop, while-loop
###############################

print("This game is hangman.")
while (incorrect_guesses != max_incorrect) and (letters_correct != word_len):
    letter = prompt_for_letter()
    if letter in alphabet:
        if letter in letters_tried:
            print("You already picked", letter)
        else:
            letters_tried.append(letter)
            if theword.find(letter) == -1:
                print("the letter", letter,"is not in the word")
                incorrect_guesses += 1
                print("***********************")
                print(incorrect_guesses)
            else:
                print("the letter", letter,"is in the word")
                for i in range(word_len):
                    if letter == theword[i]:
                        letterguess[i] = letter
                        letters_correct += 1
                    else:
                        pass
    else:
        print("Please guess a single letter in the alphabet.")


    x = ""
    print(x.join(letterguess))
    a = ""
    print("Letters tried so far: ", a.join(letters_tried))
    if incorrect_guesses == max_incorrect:
        print("Sorry, too many incorrect guesses. You are hanged.")
        print("The word was", theword)
    if letters_correct == word_len:
        print("You guessed all the letters in the word!")
        print("The word was", theword)



    display_figure(incorrect_guesses)

 

Honestly, this was a challenging project at the start and I had quite a few obstacles that were highly annoying but eventually here we are!

 

Pssst, don’t forget to be awesome today.

Yours truly, 

L.O.A.S.H

 


 © Elizabeth Anne Villoria