pretty pictures challenges
parent
b2a0114b32
commit
9a652fb56c
@ -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()
|
@ -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)
|
Loading…
Reference in New Issue