Create Graphical User Interfaces with Python.pdf
11.3 MB
β
Book : Create Graphical User Interfaces with Python β How to build windows, buttons, and widgets for your Python projects
β Download now π
β Download now π
50+ python projects with
Source codeππ
https://medium.com/@inprogrammer/50-python-projects-with-source-code-336bd54fea11
Source codeππ
https://medium.com/@inprogrammer/50-python-projects-with-source-code-336bd54fea11
Medium
50+ python projects with source code
Python is a popular high-level programming language that is widely used for web development, data analysis, artificial intelligence, andβ¦
Python learning:
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()
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()
Which of the following character is
used to give single-line comments in
Python?
used to give single-line comments in
Python?
Anonymous Quiz
25%
//
61%
#
4%
!
11%
/*
Get this book for Freeπ https://inprogrammer.com/data-science-ebooks-free-online/
Which one of the following is not a
keyword in Python language?
keyword in Python language?
Anonymous Quiz
29%
eval
9%
pass
9%
def
54%
nonlocal
5_6125174816421970019.pdf
416.5 KB
TCS Important Interview Preparation Questions
from turtle import *
speed(0)
bgcolor('black')
color('orange')
hideturtle()
n = 1
p = True
while True:
circle(n)
if p:
n = n - 1
else:
n = n + 1
if n == 0 or n == 60:
p = not p
left(1)
forward(3)
done()
speed(0)
bgcolor('black')
color('orange')
hideturtle()
n = 1
p = True
while True:
circle(n)
if p:
n = n - 1
else:
n = n + 1
if n == 0 or n == 60:
p = not p
left(1)
forward(3)
done()