import turtle
a=turtle.Turtle()
a.getscreen().bgcolor("black")
a.penup()
a.goto(-200, 100)
a.pendown()
a.color("yellow")
a.speed(25)
def star(turtle, size):
if size<=10:
return
else:
turtle.begin_fill()
for i in range (5):
turtle.pensize(2)
turtle.forward(size)
star(turtle, size/3)
turtle.left(216)
turtle.end_fill()
star(a, 360)
turtle.done()
a=turtle.Turtle()
a.getscreen().bgcolor("black")
a.penup()
a.goto(-200, 100)
a.pendown()
a.color("yellow")
a.speed(25)
def star(turtle, size):
if size<=10:
return
else:
turtle.begin_fill()
for i in range (5):
turtle.pensize(2)
turtle.forward(size)
star(turtle, size/3)
turtle.left(216)
turtle.end_fill()
star(a, 360)
turtle.done()
π33β€9
π16π1
PythonProgrammingExercisesGentlyExplained.pdf
1.5 MB
Python Programming Exercises, 2022., gently explained
42 programming exercises on 160 pages with plain-English explanations
Exercise #1: Hello, World!
Exercise #2: Temperature Conversio
Exercise #3: Odd & Even
Exercise #4: Area & Volume
Exercise #5: Fizz Buzz
Exercise #6: Ordinal Suffix
Exercise #7: ASCII Table
Exercise #8: Read Write File
Exercise #9: Chess Square Color
Exercise #10: Find and Replace
Exercise #11: Hours, Minutes, Seconds
Exercise #12: Smallest & Biggest
Exercise #13: Sum & Product
Exercise #14: Average
Exercise #15: Median
Exercise #16: Mode
Exercise #17: Dice Roll
Exercise #18: Buy 8 Get 1 Free
Exercise #19: Password Generator
Exercise #20: Leap Year
And many more
42 programming exercises on 160 pages with plain-English explanations
Exercise #1: Hello, World!
Exercise #2: Temperature Conversio
Exercise #3: Odd & Even
Exercise #4: Area & Volume
Exercise #5: Fizz Buzz
Exercise #6: Ordinal Suffix
Exercise #7: ASCII Table
Exercise #8: Read Write File
Exercise #9: Chess Square Color
Exercise #10: Find and Replace
Exercise #11: Hours, Minutes, Seconds
Exercise #12: Smallest & Biggest
Exercise #13: Sum & Product
Exercise #14: Average
Exercise #15: Median
Exercise #16: Mode
Exercise #17: Dice Roll
Exercise #18: Buy 8 Get 1 Free
Exercise #19: Password Generator
Exercise #20: Leap Year
And many more
π34π₯°9π₯4
This media is not supported in your browser
VIEW IN TELEGRAM
Bring back childhood memoriesπ. Tertis game using python. Source code ππ
π13β€6
Wrote an article If You are a beginner and looking for your first programming languages π€
https://inprogrammer.com/which-programming-language-should-i-learn-first-as-a-beginner/
https://inprogrammer.com/which-programming-language-should-i-learn-first-as-a-beginner/
π4π1
What does pip stand for python?
Anonymous Quiz
13%
Pip Installs Python
32%
Pip Installs Packages
33%
Preferred Installer Program
21%
All of the above
π34π’11π€―10β€6π₯5π5π3π₯°1
Which keyword is used for function
in Python language?
in Python language?
Anonymous Quiz
12%
function
75%
def
10%
fun
3%
define
π19β€2π₯2π2
Python supports the creation of
anonymous functions at runtime,
using a construct called_________
anonymous functions at runtime,
using a construct called_________
Anonymous Quiz
16%
pi
21%
anonymous
55%
lambda
8%
none
β€15π8π7π6π₯3π€©2
π€61π11π€―7β€5π4π2