diff --git a/Week-3/Pretty-picture/Challenges1.py b/Week-3/Pretty-picture/Challenges1.py new file mode 100644 index 0000000..aeb251b --- /dev/null +++ b/Week-3/Pretty-picture/Challenges1.py @@ -0,0 +1,18 @@ +from gasp import * +#The below link will give you a total understanding of Coordinate Plan +# https://www.splashlearn.com/math-vocabulary/geometry/coordinates + +begin_graphics() + +Circle((350,255),100)#This cirecle represent head +Circle((300,255), 20) #This circle represent left eye +Circle((370,260),20) #This circle represent left eye + + + + + + +update_when("key_pressed") + +end_graphics() diff --git a/Week-3/Pretty-picture/Challenges3-4.py b/Week-3/Pretty-picture/Challenges3-4.py new file mode 100644 index 0000000..7206f6c --- /dev/null +++ b/Week-3/Pretty-picture/Challenges3-4.py @@ -0,0 +1,12 @@ +#Challenges 3 +def moan(): + print("\nPython is useless!\nAnd so are these worksheets") + +moan() + +# Challenge 4 + +def twice(x): + print(x*x) + +twice(5)