Khamidov 🗽Python
109 subscribers
86 photos
18 videos
34 files
32 links
👋Assalomu aleykum men👨‍💻
@Mr_developer616z 👨‍💻

Python developer's channel
Download Telegram
Python'da rim raqamlaridan oddiy raqamlarga o'tish dastur kodi.

ps: Agar sizda alternativlar bo'ladigan bo'lsa izohda qoldirishingiz mumkin )

#python

@Python_BIM
from turtle import *
state ={'turn': 0}
def spinner ():
clear()
angle = state['turn']/10
right(angle)
forward(100)
dot(120, 'red')
back(100)
right(100)
forward(100)
dot(120, 'green')
back(100)
right(120)
forward(100)
dot(120, 'blue')
back(100)
right(120)
update()
def animate():
if state['turn']>0:
state['turn']-=1
spinner()
ontimer(animate, 20)
def flick():
state['turn']+=10
setup(420, 420, 360, 0)
hideturtle()
tracer(False)
width(20)
onkey(flick, 'space')
listen()
animate()
done()
Yuqoridagi kod ekranga ko'ringandan keyin chiqadigan javoblar tog'ri belgilangan qatorni toping😉
Anonymous Quiz
25%
True, True, True
25%
True, False, True
25%
True, True, False
25%
False, False, True
0%
True, False, False
Qaysi biri samaradorliroq...

Commentda yozib qoldiring!!!


@Python_BIM
Channel name was changed to «Khamidov🐍»
3 qator bilan soat yaratish
from turtledemo.clock import*
while 1:
main()
Eslatma: "1" o'rniga hozirgi vaqtni qo'ysa bo'ladi
⚙️Endiyam o’rganmaysizlarni Django…

#python #django

@Python_BIM
👍1
Telegram bot kodlarini yozib beramiz✓
BotFather va AI bot soramasanglar boldi😁
Lich: @Mr_developer616
Va nixoyat birinvhi buyurtma agarda tushunmovchiliklar bolsa tezda tog'irlaymiz✓
🫵Sizga ham kerak bolsa lich: @Mr_developer616
👍3
This media is not supported in your browser
VIEW IN TELEGRAM
Impossible is possible in Python 🫴 ⚙️

@Python_BIM
😁1
⚙️ Integer Problem 01

#int

#python #PythonBasicProblems

@Python_BIM
👍1
Khamidov 🗽Python
⚙️ Integer Problem 01 #int #python #PythonBasicProblems @Python_BIM
Kamentlarga javob yozib qoldiring‼️
Balki priv bolishi mumkundir... 🫵
⚙️ Integer Problem 02

#int

#python #PythonBasicProblems

@Python_BIM
Khamidov 🗽Python
⚙️ Integer Problem 02 #int #python #PythonBasicProblems @Python_BIM
Ishlab javobini commentda yozib qoldiring✧ balki priv bolishi mumkundir... 🫵
#kankulyator dasturi
def qushish(x,y):
return x+y
def ayirish(x,y) :
return x - y
def kupaytirish(x,y):
return x*y
def bulish(x,y):
return x/y

print("Biron bir amal tanlang")
print("1. Qushish amali")
print("2. Ayirish amalni")
print("3. Kupaytirish amali")
print("4. Bulish amali")

son = input("Tanlagan amaliz 1/2/3/4:")

num1 = float(input("Birinchi sonni kiriting:"))
num2 = float(input("Ikkinchi sonni kiriting:"))

if son == "1":
print(num1, "+", num2, "=", qushish(num1,num2))
elif son == '2':
print(num1, "-", num2, "=", ayirish(num1,num2))
elif son == '3':
print(num1, "*", num2, "=", kupaytirish(num1,num2))
elif son == '4':
print(num1, '/', num2, '=', bulish(num1,num2))
else:
print ("bunday amal bizda yuq")


@Python_BiM