Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/100DaysOfPython.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Exercise.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
a = 5
b = a += 2
print(a)
49 changes: 49 additions & 0 deletions Hangman.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import random

# Create a List

word_list = ["aardvark", "baboon", "camel"]

# Randomly select the word in the list to a variable

chosen_word = random.choice(word_list)

# Creating an empty list
display = []

print(chosen_word)

# Print out the Guess Letter
print("Guess a Letter: ", end="")

# Take input from the user from the Keyboard
guess = input()

# change the input character from Capital letter to Lowercase letter of the use input
guess = guess.lower()

count = 0

for char in chosen_word:
# display += "_"
display.append("_")
print(display)

# for num in range(len(chosen_word)):
# # for check in chosen_word:
# count = count + 1
# print(count)
for check in range(len(chosen_word)):
if guess in chosen_word[check]:
display[check] = guess


# for check in chosen_word:
# # print(num)
# if guess in check:
# print(num)
# print("Yes")
# else:
# print("No")

print(display)
41 changes: 41 additions & 0 deletions Hurdle4_Task.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
def turn_right():
turn_left()
turn_left()
turn_left()


def jump():
turn_left()
move()
turn_right()
move()
turn_right()
move()
turn_left()


def jump_high():
turn_left()
move()
turn_right()


def down():
move()
turn_right()


while not at_goal():
while not wall_on_right():
turn_right()
move()
if wall_in_front() and not right_is_clear():
turn_left()
if wall_on_right() and wall_in_front():
jump_high()
if front_is_clear():
down()
if not front_is_clear():
turn_left()
else:
move()
122 changes: 122 additions & 0 deletions hangman
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<mxfile host="app.diagrams.net" modified="2021-08-21T17:22:04.122Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36" etag="L66pGp4mmVK1tJPxQbrP" version="14.9.8" type="github">
<diagram id="0lbbIbLhMIeAVC25I4x0" name="Page-1">
<mxGraphModel dx="1038" dy="583" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="4R_y7fD7o8JpxxvdfKq7-4" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="4R_y7fD7o8JpxxvdfKq7-1" target="4R_y7fD7o8JpxxvdfKq7-2" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-1" value="Start" style="ellipse;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1">
<mxGeometry x="350" y="30" width="120" height="80" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-6" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="4R_y7fD7o8JpxxvdfKq7-2" target="4R_y7fD7o8JpxxvdfKq7-5" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-2" value="Generate Random Words" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="350" y="180" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="4R_y7fD7o8JpxxvdfKq7-5" target="4R_y7fD7o8JpxxvdfKq7-7" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-5" value="Generate the number of empty space of the word generated" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="350" y="310" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="4R_y7fD7o8JpxxvdfKq7-7" target="4R_y7fD7o8JpxxvdfKq7-9" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-36" style="edgeStyle=none;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="4R_y7fD7o8JpxxvdfKq7-7" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="90" y="900" as="targetPoint" />
<Array as="points">
<mxPoint x="40" y="482" />
<mxPoint x="40" y="900" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-7" value="Ask user to guess the letters" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="350" y="450" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-12" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=1;entryY=0.5;entryDx=0;entryDy=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" parent="1" source="4R_y7fD7o8JpxxvdfKq7-7" target="4R_y7fD7o8JpxxvdfKq7-11" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-14" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="4R_y7fD7o8JpxxvdfKq7-9" target="4R_y7fD7o8JpxxvdfKq7-13" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="660" y="615" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-16" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="4R_y7fD7o8JpxxvdfKq7-9" target="4R_y7fD7o8JpxxvdfKq7-15" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-9" value="Is the guess letter in the word?" style="rhombus;whiteSpace=wrap;html=1;rounded=1;" parent="1" vertex="1">
<mxGeometry x="300" y="570" width="220" height="90" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-38" style="edgeStyle=none;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="4R_y7fD7o8JpxxvdfKq7-11" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="420" y="1040" as="targetPoint" />
<Array as="points">
<mxPoint x="660" y="1040" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-11" value="Have they run out of lives?" style="rhombus;whiteSpace=wrap;html=1;rounded=1;" parent="1" vertex="1">
<mxGeometry x="550" y="850" width="220" height="90" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-18" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="4R_y7fD7o8JpxxvdfKq7-13" target="4R_y7fD7o8JpxxvdfKq7-11" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-13" value="Lose a life&amp;nbsp;" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="570" y="700" width="180" height="60" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-20" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="4R_y7fD7o8JpxxvdfKq7-15" target="4R_y7fD7o8JpxxvdfKq7-19" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-15" value="Replace the blank with the letter" style="whiteSpace=wrap;html=1;rounded=1;" parent="1" vertex="1">
<mxGeometry x="90" y="700" width="170" height="60" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-39" style="edgeStyle=none;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="4R_y7fD7o8JpxxvdfKq7-19" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="430" y="1040" as="targetPoint" />
<Array as="points">
<mxPoint x="175" y="1040" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-19" value="Are all the&amp;nbsp;&lt;br&gt;blanks filled?" style="rhombus;whiteSpace=wrap;html=1;rounded=1;" parent="1" vertex="1">
<mxGeometry x="90" y="860" width="170" height="80" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-21" value="No" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;" parent="1" vertex="1">
<mxGeometry x="665" y="640" width="30" height="20" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-22" value="Yes" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;" parent="1" vertex="1">
<mxGeometry x="115" y="640" width="30" height="20" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-34" style="edgeStyle=none;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="1" source="4R_y7fD7o8JpxxvdfKq7-19" target="4R_y7fD7o8JpxxvdfKq7-19" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-41" style="edgeStyle=none;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="4R_y7fD7o8JpxxvdfKq7-40" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="425" y="1040" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-40" value="Game Over" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;" parent="1" vertex="1">
<mxGeometry x="355" y="1100" width="140" height="80" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-42" value="Yes" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;" parent="1" vertex="1">
<mxGeometry x="605" y="970" width="30" height="20" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-43" value="Yes" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;" parent="1" vertex="1">
<mxGeometry x="185" y="970" width="30" height="20" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-44" value="No" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;" parent="1" vertex="1">
<mxGeometry x="55" y="910" width="30" height="20" as="geometry" />
</mxCell>
<mxCell id="4R_y7fD7o8JpxxvdfKq7-45" value="No" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;" parent="1" vertex="1">
<mxGeometry x="760" y="920" width="30" height="20" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>