
Meet Tech A Girl
Technology Girls Inc

Tech A Girl loves bows and playing board games, she also likes to brush her long flowing hair. Tech A Girl favorite code is to create a while loop, so she can constantly go to the finish line within a board game. Tech A Girl favorite school subject is math. Please don't bother Tech A Girl while she is figuring out a math problem, she will get angry and her computer flips.



I love Board Games and having fun with my friends.
WOW! that car goes fast!




I can't solve x^2 + 3=6


Dice
Rolled by Tech A girl





def diceroll():
roll=random.randint(1,6)
Player 1: Tech A Girl
Tech A Girl
You Roll: 1
Output
Note: The output continues to loop.
The compiler rolls the dice, just like Tech A girl as you can see in the photo next to this one.

def roll():
roll=random.randint(1,6)

Output
Player1: Tech A Girl
Tech A Girl
You Roll: 1
Note: The Output Continues To Loop
Notice Tech A Girl is holding the the python compiler just like holding a dice, and it does the same function, just within the Python Compiler

This is the best part of the board game, The finish line.
While Loop/ For Loop(Python Code) Understanding

So, how we stop the wheel from spinning? This wheel will continue to spin.



This is the python compiler that is awhile that never stops, so how do stop this from looping, in python code, programming languages?
Tech A Girl Stops the wheel from spinning.



def diceroll():
roll=random.randint(1,6)
Note: now, within the compiler when the function is called, the dice will roll just the same as Tech actually rolling the dice. So, the function(diceroll) and the variable being initialized with the random number 1-6, is what caused, player 1, which is tech A Girl to roll the dice and the dice actually being rolled and being return, within the for loop.
This function within the compiler causes the dice to roll and prevent the while loop from looping infinity.

for i in range(6):
diceroll()
player1turn()
Tech A Girl stops the while loop from looping infinity

Some Examples of Tech A Girl Methods of learning Python(Computer Language)
At Technology Girls Inc, we believe that learning computer languages should be fun and accessible for everyone. That's why we created animated characters to teach girls computer languages, with a focus on Python. Our goal is to inspire and empower the next generation of female tech leaders.