uz
Feedback
Python Codes Basic to Advance

Python Codes Basic to Advance

Kanalga Telegram’da o‘tish
2 813
Obunachilar
Ma'lumot yo'q24 soatlar
-47 kunlar
-2430 kunlar
Postlar arxiv
#6 sorted()
my_list4 = [16, 17, 18, 19, 20]
sorted_list = sorted(my_list4)
print(sorted_list)

#5 sum()
my_list3 = [11, 12, 13, 14, 15]
total = sum(my_list3)
print(total)

#4 min()
my_list2 = [6, 7, 8, 9, 10]
min_value = min(my_list2)
print(min_value)

#3 max()
my_list1 = [1, 2, 3, 4, 5]
max_value = max(my_list1)
print(max_value)

#2 list()
new_list = list(range(5))
print(new_list)

#1 len()
my_list = [1, 2, 3, 4, 5]
length = len(my_list)
print(length)

# Python list functions 👇

Are you added coding folder? 👇 https://t.me/addlist/2UhsQW_cGzkxMzg1

What is the full form of CSV file?
Anonymous voting

The following functions are used to access data randomly.
Anonymous voting

The file in which data are to be dumped, needs to be opened in _______________.
Anonymous voting

Serialisation is also known as____________.
Anonymous voting

How many parameters one can pass in open() method in python?
Anonymous voting

Which method is used to find the name of the current working directory in Python?
Anonymous voting

import turtle as t

t.begin_fill()
t.bgcolor('yellow')
t.fillcolor('black')
t.left(134)

for i in range(30):
    t.forward(1)
    t.left(1)

t.right(5)

for i in range(35):
    t.forward(1)
    t.left(1)

t.left(5)
t.forward(30)

for i in range(15):
    t.forward(0.7)
    t.right(3)

t.forward(25)
t.left(5)

for i in range(50):
    t.forward(1)
    t.left(1)

t.right(3)

for i in range(50):
    t.forward(1)
    t.left(1)

t.right(5)

for i in range(45):
    t.forward(2)
    t.left(1)

t.right(5)

for i in range(40):
    t.forward(2)
    t.left(1)

t.left(5)

for i in range(20):
    t.forward(1)
    t.left(2)

t.left(5)
t.forward(15)

for i in range(9):
    t.forward(2)
    t.right(3)

t.forward(1)

for i in range(15):
    t.forward(1)
    t.right(1)

t.right(4)
t.forward(4.5)
t.right(1)

for i in range(27):
    t.forward(1)
    t.left(2)

t.left(8)
t.forward(5)

for i in range(25):
    t.forward(2)
    t.left(1)

t.right(3)
t.forward(10)
t.left(83)

for i in range(75):
    t.forward(1.3)
    t.right(1)

t.right(4)

for i in range(24):
    t.forward(1.3)
    t.right(1)

t.forward(9.66)
t.end_fill()
t.penup()
t.left(132)
t.forward(100)
t.right(96)
t.pendown()
t.begin_fill()
t.fillcolor('black')

for i in range(60):
    t.forward(0.8)
    t.right(1)

t.right(120)

for i in range(60):
    t.forward(0.8)
    t.right(1)

t.hideturtle()
t.end_fill()

t.done()

Apple logo using python..
Apple logo using python..

You know that you can create your own compiler bot Just by sending your bot token in @fastCompiler_bot See tutorial: https://t.me/logicBots/174

# built in api fetcher in Python
import urllib.request

url = input("Enter your api url: ") 
# https://example.com


try:
    with urllib.request.urlopen(url) as response:
        data = response.read()
        # Do something with the data here
        print(data)
except urllib.error.URLError as e:
    print("Error: please enter correct api url")

image & audio Captcha generator using python... https://t.me/addlist/2UhsQW_cGzkxMzg1
+1
image & audio Captcha generator using python... https://t.me/addlist/2UhsQW_cGzkxMzg1