Which of the following character is
used to give single-line comments in
Python?
used to give single-line comments in
Python?
Anonymous Quiz
20%
//
67%
#
3%
!
10%
/*
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()
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
This media is not supported in your browser
VIEW IN TELEGRAM
Bring back childhood memoriesπ. Tertis game using python. Source code ππ
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/
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
Which keyword is used for function
in Python language?
in Python language?
Anonymous Quiz
12%
function
75%
def
10%
fun
3%
define
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