PythonCoder Official
78.1K subscribers
224 photos
8 videos
91 files
97 links
• 𝗕𝗲𝘀𝘁 𝗽𝗹𝗮𝗰𝗲 𝗳𝗼𝗿 𝗣𝘆𝘁𝗵𝗼𝗻 𝗖𝗼𝗱𝗲𝗿𝘀 😀
• 𝗙𝗿𝗲𝗲 𝗣𝗿𝗼𝗴𝗿𝗮𝗺𝗺𝗶𝗻𝗴 𝗖𝗼𝘂𝗿𝘀𝗲𝘀 & 𝗧𝘂𝘁𝗼𝗿𝗶𝗮𝗹𝘀📒
• 𝗗𝗮𝘁𝗮 𝗦𝗰𝗶𝗲𝗻𝗰𝗲📊 | 𝗠𝗮𝗰𝗵𝗶𝗻𝗲 𝗟𝗲𝗮𝗿𝗻𝗶𝗻𝗴 | 𝗔𝗜 🤖
• 𝗗𝗮𝗶𝗹𝘆 𝗗𝗼𝘇𝗲 𝗼𝗳 𝗣𝗿𝗼𝗷𝗲𝗰𝘁𝘀 🧠
Download Telegram
In Python, What is the result of -
>>> 0 / 0
Anonymous Quiz
26%
Infinite
46%
Error
28%
Zero
👍4
The filter() method filters the given sequence with the help of a function that tests each element in the sequence to be true or not.

Syntax :

filter(function, sequence)

Parameters: function: function that tests if each element of a sequence true or not. sequence: sequence which needs to be filtered, it can be sets, lists, tuples, or containers of any iterators.

Returns: returns an iterator that is already filtered
👍2
👍2
Forwarded from PythonCoder Official
🌟𝗦𝗼𝘂𝗿𝗰𝗲 𝗖𝗼𝗱𝗲 💻👇 Of Rainbow Project 🌈
import turtle as t
import colorsys

t.speed(0)
t.hideturtle()
t.bgcolor("black")
t.title("Rainbow")
t.setup(700,700)
colors=49
radius=300
penwidth=20*7/colors
hue=0

def draw(x,y,r,pensize,color):
t.up()
t.goto(x+r,y)
t.down()
t.seth(90)
t.pensize(pensize)
t.pencolor(color)
t.circle(r,180)

for i in range(colors):
(r,g,b)=colorsys.hsv_to_rgb
(hue,1,1)
draw(0,-100,radius,penwidth,(r,g,b))
radius-=(penwidth-1)
hue+=0.9/colors
👍32🔥2👏1
?????
Anonymous Quiz
47%
True
53%
False
Output ???
If you are registered type "YES" now 🎉✔️👍
Are you interested in Source Code of Instagram Logo design ???
👍2