Author Archives: citlaligonzalez19

MASTERY 16

USE OF ELSE WITH A CONDITIONAL:

MASTERY 16

This is pretty simple I ask for the grade of someone, then after they introduce the grade I used an if to make a statement, if the grade is lower or equal to 6 there is going to be a message and this one is going to say “Boo! you failed the test” and here comes the else (drum roll…..)  this one is used if the IF is not met so if this one is true (else) the message is going to say “OMG! congratulations you passed your test”. That’s all folks.

In a very summary way the else is the other conditional if the first one isn’t true.

MASTERY 16

MASTERY 15

USE OF THE CONDITIONAL IF:

MASTERY 15

Here is a really simple program that shows you how to use the conditional if. First of all I asked the user for his age if the user is greater than 17 it is a grown-up and then the program will sent a message that says “You’re a grown-up, be happy or sad that’s your choice” but if the user types he is 6 years old for example the program will sent the message “You’re young be happy”. Very simple don’t you think so ?

But wait what is an if ?

Is a programming conditional statement that, if proved true, performs a function or displays information.

http://www.computerhope.com/jargon/i/ifstatme.htm

MASTERY 15

MASTERY 07

USE OF COMMENTS IN PYTHON:

MASTERY 07

In the previous screenshot I made a simple explanation of the uses of comments in python it’s really useful and helpful if you have to do a long program and you don’t remember something then with the comments just using this symbol “#” you can do the comment and remember one or many important things. xoxo

MASTERY 07

SUM OF NUMBERS!

WSQ07

What this program does is ask for two numbers to the user, the first number is used to start adding and the second one to finish the addition, for example if the user types that wants to start adding with number 1 and ending on the 5th what the program does is: 1 + 2 + 3 + 4 + 5 and the result would be 15.
EXAMPLE:

SUM OF NUMBERS!

In the previous example i used an accumulator and a counter. I name the accumulator as “s” and the counter as “count”. First of all I equal the counter to the first number the user gave me, so this means the counter is going to be the same as the first number they type, then i used a loop (while) and I put a statement that the counter has to be less or equal than the second number the user gave me, so practically this is used for the program to ends the addition. Then I equal the accumulator to “0” and then I gave the program the instruction of accumulate s= s+ count if they type the number 1 the counter is going to be 1 and the same for the accumulator cause’  s= s+ count this is the same like s=0+1. Finally i put the counter for the program to do the loop and that’s all.

SUM OF NUMBERS!

RANDOM NUMBERS!!

WSQ06

RANDOM NUMBERS!!

This program allows an user to enter random numbers in the range of 1-100, so the user has to guess a number. If the number you enter in the program isn’t the correct one you have to try more times until you guess the number, if the number you picked is too low the program will send you a message “Too low” and if the number you picked is too high the program will send you “Too high”, basically the program give you clues to guess the number, it’s like a game, have fun.

RANDOM NUMBERS!!

TEMPERATURE BOILS AT 100 DEGREES!

WSQ05 IS DONE:

TEMPERATURE BOILS AT 100 DEGREES!

TEMPERATURE BOILS AT 100 DEGREES!

FUN WITH NUMBERS 1234….

Here it is:

FUN WITH NUMBERS 1234….

FUN WITH NUMBERS 1234….

FLIPPED WHAAAT?

Flipped classroom:

Is another way to learn just like the traditional one, but guess what? is better. Why do I think is better? because you don’t have to sit down and hear all the blablabla the teacher has to say because instead of that you can read the lesson and try to understand it by yourself, after you have done this the only thing you do the next day when you assist to class is to ask the teacher about your doubts and he will explain it to you.

FLIPPED WHAAAT?

FLIPPED WHAAAT?

ABOUT!

My name is Citlali, yes you can tell me Lali, it’s easier. 18, Mexican. I love food, who doesn’t love it?. I love to sing and dance maybe I’m not that good but I will not stop doing it. I really love fashion and all that stuff. I’m an ESFP and yes I’m a Scorpio. Animation and Digital Art student. My life have no sense without watching tv shows and finally my favorite person is Hayden Williams. Now that I think I love a bunch of stuff, cya.

ABOUT!

ABOUT!

SIGNED PAGE ONE!

Tell me about it.

SIGNED PAGE ONE!

SIGNED PAGE ONE!