MORNING READS

The best is yet to be

– Robert Browning

First off, MEERRRYYY CHRISTMAS PEEOPLES!!

Being optimistic is difficult. It’s easier to stay wrapped in a blanket on the more negative spectrum of life. I know this because I do this. I tend to find myself in this area more time than I would like to admit. And, don’t get me wrong, we need to wallow sometimes. We need to grab our hot chocolates, blankets, slap on some fluffy socks and let it out. It’s healthy and necessary to let that pain flow out through the tears. Don’t bottle it in. Remember, whatever you are feeling is totally valid.

Afterwards though, we got to bounce back. As much as I love staying in the warm blanket (which I’ll definitely get back to later on, except with good vibes instead), I fold it and lay on the bed, put the cup in the sink (wash it of-course), throw the socks in the hamper, and splash some cold water on my face. Recently, thankfully, I’ve been able to push myself and conquer in the war which I make against myself more often and I’m very proud to say that.

A few nights ago, as I was lying in bed, I grabbed my notebook and pen (which was fortunately laying on top of my side table) and wrote two words: Morning Reads. You probably guessed that, huh. Now, what is Morning Reads? Let me tell you. It’s a list of things that I made that I have to say to myself first thing in the morning. I usually do this in front of the mirror, or while I’m laying in bed contemplating wether I should get up or stay in bed, imagining scenarios where I’m baking all the deserts I have in my Pinterest boards of foodies. I found it to be pretty silly at the start, because I’ve never really done it before. I was so used to making jokes about myself and being (honestly pretty mean and) kinda rude, something I know would be outrageous to utter to another human being, yet when it came to me saying it to me, I didn’t mind. BUT NOW, I VERY MUCH DO MIND. I found it easier to make it a goal of mine to say positive things to myself more than always on the look out to stop myself from saying something mean (although I try to do).

GUYS, when I started saying these things to myself, there was a transformation. A BIG ONE. I turned into a mini marshmallow. Yes, the one who’s typing this is right now is a very awesome marshmallow sharing my secrets. Okay, okay jokes aside. I’m being for real (just to clarify: not about being a marshmallow) that there is a change that you’ll start to notice. A positive and good vibes type of change.

So far, here’s what my list is comprised of:

– Today is going to be a good day

– I am badass

– I am beautiful

– I am awesome

– I am productive

You are badass and beautiful and awesome and productive. And, I absolutely suggest that you should try this tooooo! Use this list, create you own, get creative, and go for it. Anyways, here’s where I end. I hope you’re staying safe! I love you and I’ll see yah in the next blog. 😀

Yours truly,

Liz

Put Your Records On – Corinne Bailey Rae Cover (ft. my lil sisters) + random montage

super random. BUT, here’s a little video. enjoyyyy. I hope that you’re having a great week, HYDRATING, and staying awesome. Being awesome is good.

ALSO:

have you been working on finding your inner peace? 

have you laughed till u peed recently because you should.

remember to take breaks and rest.

I’m proud of you!!

love youuuu! ❤

 

 

 

 

 

 

 

Guide to GOOD GRADES (yeahhss)

“Positivity always wins… always.” – Gary Vaynerchuk

Remember that your grades do not define you and that what matters is what you make of yourself and how you rise up against the hardships in life and give back to those around you and the planet at the end of the day.

whew.

Okay, now let’s do this. 🙂 You got it. Here’s a video I made on GETTING THOSE GOOD GRADES. I hope it really helps you and you enjoy!!

Important tips to doing good at school:

Your MINDSET is your magic power. I am a strong believer that what you put your mind to and what you honestly and genuinely believe you can do, YOU CAN DO. What you can do right now to just bring yourself a step closer to your goal is to fully BELIEVE that you got this, that you’re capable, and that YOU’RE AWESOME. 

Going off of mindset, you also need to surround yourself with like-minded people who aim to reach success along with keeping a positive and kind attitude. You tend to imitate the actions and thoughts of the people you spend most of your time with. It was studied by social psychologists which showed that the people you most associate with had a very high percentage in the influence of your life. 

You want that A? You want to do well in school? Here’s one of the secrets: you have to make SCHOOL and those GRADES top PRIORITY.

You need to defeat the enemy: procrastination

You have your calendar, your MOTIVATION, and some other tips by your side. YOU GOT THIS. As soon as you get home, grab your homework or project out and finish it. Give yourself an hour of full concentration and DO IT. If you realize that there’s a couple of homework stashed in the deep end of your backpack right now, pause from reading this awesomeness (here’s a free permission slip), and complete that. DON’T LET THE ENEMY WIN. 

Another helpful way to know which direction to take when studying is to find out your learning style. If you know it already, feel free to skip forward to the next tip! Everyone learns differently and that’s completely fine. The good news about understanding this is we can find out what is the best way to learn to optimize our study time. You can click here to take the learning style assessment! What I love about the assessment is that at the end of the test, it will tell you a list of the best ways and ideas you can do to study your best. Take the test! 🙂 

The next thing on the agenda is raising your hand. RAISE. YOUR. HAND. First off, it’s good for arm exercise. Second off, if you need help to understand whatever the teacher is talking about in class raise your hand and ask them to explain it. I know all the eyes in the classroom might seem kind of intimidating at first but raising your hand to understand better is really worth it and helpful in passing in class.

I’ll end you with this: Find your WHY. It is highly important to find your why because it will work as your motivation. When things get tough, your why will help you. YOU GOT THIS. I really hope this helps you keep a positive mindset while proving to yourself that you’re 100% capable of doing this. 

Love,

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 

 

 

Project Python: Advanced Number Guessing Game (#fun)

Quote of AWESOMENESS: “Creativity is intelligence having fun” ~ Albert Einstein

Hey, guys!

Back again with another python program.

Awesome isn’t?

Now, this program is an “advanced” version of a guessing number game. So basically, the program gives the user three guesses and the numbers are ranging from 1-10. Through each time the user types in the answer and is wrong, the input would spit out either “too high” or “too low” indicating what the user’s next move should be.

Mix around with it and experiment like maybe adding a wider range of numbers to guess from or maybe adding riddles to guess the number. This code is somewhat the basis of what else can be built with it, so be creative and have fun! 

Here’s the code:



import random

range = random.randint(1, 10)

user_guess = 0

guess_counter = 0

print(“This is a guessing game and you will be given three tries to win! \nThe range will be between 1 and 10. \nGood luck!!”)

while guess_counter < 3:

user_guess = input(“What’s your guess?”)

guess_counter += 1

if user_guess.isnumeric():

user_guess = int(user_guess)

if user_guess < range:

print(“too low”)
elif user_guess > range:
print(“too high”)
else:
break

else:
print(“Not a number!”)

if user_guess == range:
print(“Awesome! You won!!”)
else:
print(“The number was actually”, range)
print(“Try again!”)



 

Have an awesome weekend!

Yours truly, 

L.O.A.S.H

 


 © Elizabeth Anne Villoria 

Python Basics!!!

Quote of awesomeness: “It’s harder to read code than to write it.” ~ Joel Spolsky

Let’s learn some basics!

Here are some simple datatypes:

  • Integers (whole number)
    • 1, 2, 3, 4, 5, 6….

 

  • Floats (decimals)
    • 1.1, 1.2, 1.3, 1.4, 1.5…..

 

  • String (anything in “quotation marks”)
    • “hello”, “my”, “awesome”, “readers!”

 

  • Boolean (I know, sounds kinda funny right)
    • these datatypes are values at two constant objects
    • a boolean is either True or False (yes, with a capital T and a capital F)

 

Want to do something cool? Yeah, me too. Okay, once you open up your terminal, type in and press enter. The next that should have happened is that your terminal should have showed this:

>>>

Did you know??!!: #when a hashtag is put in python, this is known as a comment and it doesn’t affect the code

Did you know that we can keep datatypes stored into variables? It works like this. When you write a variable a word or letter, for example, then followed by this is a equal sign you can assign a variable. Let’s try it out on your terminal! Try doing something similar to the following:

>>> x = “helllloooooo thereeee!!!”

When you pressed enter, you must have not seen anything happen but just another >>>. But, it’s okay, here’s the thing. The string I just put with the variable is now stored. So when I put my variable alone this is what happens:

>>> x

Press enter and theeeeen!!

>>> helllloooooo thereeee!!!

TADA! WASN’T THAT SUPER COOL?!?! And, that’s just the very basics of what can be reached with python. 

You can even do some math with python. The arithmetics might be slightly different but I’m sure you will get the hang of it soon!:

  • Multiply (it’s the asterisks sign)
  • Division (it’s the slash)
  • Addition (it’s the plus sign)
    • +
  • Subtraction (it’s the minus sign)
  • Exponentiation (it’s two asterisks)
    • **
  • Modulus (it’s the percentage sign) 
    • %
    • this divides a number with another number and inputs the remainder

Here’s an example of each of these signs and their outputs. You can also test this out on the python which we opened up earlier on the terminal.


multiplication, *

>>> 2 * 9

When we put the equation above, our output would be

>>> 18


 

division, /

>>> 256 / 2

The output would be:

>>> 128


 

addition, +

>>> 1000 + 1000

The output would be

>>> 2000


 

subtraction, –

>>> 500 – 200

The output would be:

>>> 300


exponentiation, **

>>> 4 ** 2

The output would be:

>>> 16


 

modulus, %

>>> 2 % 5

Would get the output of:

>>> 1


 

Go on. Try experimenting at your terminal!

!important! : Unlike other programming types, python is very picky with whitespace. Meaning the indentations! Sometimes an error on expected or unexpected indentations may rise here and there but it’s nothing a few backspaces or the tab button can’t handle.

We’ve gotten down with some of the very basics that can be done with programming. With what you’ve learned here so far try exploring and trying this out! 

Yours truly,

L.O.A.S.H