From 9a652fb56cf14add6c77f25c70e92861531c3566 Mon Sep 17 00:00:00 2001 From: Spencerscooper Date: Thu, 7 Dec 2023 22:36:11 +0000 Subject: [PATCH] pretty pictures challenges --- Week-3/Pretty-picture/Challenges1.py | 18 ++++++++++++++++++ Week-3/Pretty-picture/Challenges3-4.py | 12 ++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 Week-3/Pretty-picture/Challenges1.py create mode 100644 Week-3/Pretty-picture/Challenges3-4.py 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)