AK Python
1.86K subscribers
39 photos
2 videos
11 files
236 links
Join here to unlock your programming ability
Download Telegram
#YKYG : Does Python support OOPS?
Anonymous Quiz
87%
Yes
13%
No
If you have any queries,projects,doubts, sponsorships,Don't hesitate

Contact 👇

Mail-id: queriesakpython@yahoo.com
Instagram: akpythonyt

Thanks
#YKYG : The Feature in OOPS that allows same operation to be carried out differently... Identify the feature
Anonymous Quiz
74%
Polymorphism
14%
Encapsulation
12%
Abstraction
Guys check this important video🌟
What is your programming experience?
Anonymous Poll
75%
0-1 years
18%
2-5 years
7%
More than 5 years
Code for Object oriented programming
Source code:
class Human:
def init(self,name,height,weight):
self.name=name
self.height=height
self.weight=weight

def eating(self,food):
return("{} is eating {}".format(self.name,food))

#creating objects
ram=Human("Ram",6,60)
praveen=Human("Praveen",5.9,56)
arun=Human("Arun",6.0,50)

#Retreiving the object information
print("Height of {} is {}".format(ram.name,ram.height))
print("weight of {} is {}".format(ram.name,ram.weight))
print(ram.eating("Pizza"))
print("Height of {} is {}".format(praveen.name,praveen.height))
print("weight of {} is {}".format(praveen.name,praveen.weight))
print(praveen.eating("banana"))
print("Height of {} is {}".format(arun.name,arun.height))
print("weight of {} is {}".format(arun.name,arun.weight))
print(arun.eating("Rice"))
This media is not supported in your browser
VIEW IN TELEGRAM
Happy Christmas to all🌟
Video will be uploaded soon..! Stay tuned guys❤️
New video is out now
import pyautogui
import PySimpleGUI as sg
import cv2
import numpy

def main():
sg.theme('White')

layout=[[sg.Text('Camera',size=(40,1),justification='center',font='Helvetica 20')],
[sg.Image(filename='',key='image')],
[sg.Button('Record',size=(10,1),font='Arial 14'),
sg.Button('Stop',size=(10,1),font='Arial 14'),
sg.Button('Exit',size=(10,1),font='Arial 14'),
sg.Button('Screenshot',size=(10,1),font='Arial 14')]]

window=sg.Window('Camera application',layout,location=(800,400))

cap=cv2.VideoCapture(0)
recording=False

while True:
event,values=window.read(timeout=20)
if event=='Exit' or event==sg.WIN_CLOSED:
return

elif event=='Record':
recording=True
elif event=='Screenshot':
myScreenshot=pyautogui.screenshot()
myScreenshot.save(r'shot.png')

elif event=='Stop':
recording=False
img=np.full((480,640),255)
imgbytes=cv2.imencode('.png',img)[1].tobytes()
window['image'].update(data=imgbytes)

if recording:
ret,frame=cap.read()
imgbytes=cv2.imencode('.png',frame)[1].tobytes()
window['image'].update(data=imgbytes)
main()
Code for Camera app in python
Keep support & share❤️
Among these Distributions which one doesn't comes from Linux Distributions background?
Anonymous Quiz
23%
Fedora
56%
Chrome OS
22%
Parrot OS
🌟Massive Update: Golden Opportunity to earn money by using python skills.If you're good at python programming and Frameworks.I will share my future projects with you.And help you to earn money.

🌟Project details will be uploaded only on Telegram group

🌟More details will be on next video
Happy New year to all🌟😁