#!/usr/bin/python
# -*- coding: utf-8 -*-
from BigData import Data
from job import tasks
import asyncio
class DataEngineer(Data):
pass
class DataScientist(Data):
pass
class DataScienceEngineer(DataEngineer, DataScientist):
def __init__(self):
self.name = "Anuj Chauhan"
self.role = "Data Science Engineer"
self.languages = ["Python3", "Java"]
self.hobbies = ["music", "road_trips", "maths"]
def say_hi(self):
print("Thanks for dropping by, hope you find something useful.")
async def do_job_work(self):
for i in range(0, len(tasks)):
if i % 20 == 0:
print("Hey, Can't you see I'm working")
print("bc code fat gaya! told you to test rigorously!!")
return 0
async def do_personal_work(self):
for i in range(0, len(study_tasks)):
if i % 10 == 0:
print("Guitar, Keyboard, Roadtrips, Hikings, Long walks .. zzz..")
print("What a life.. zzz..")
return 0
async def here_and_there(self):
f1 = loop.create_task(self.do_job_work())
f2 = loop.create_task(self.do_personal_work())
await asyncio.wait([f1, f2])
def get_back(self):
struggle = asyncio.get_event_loop()
struggle.run_until_complete(here_and_there())
struggle.close()
if __name__ == "main":
me = DataScienceEngineer()
me.say_hi()
me.get_back()
hanchau Goto Github PK
Name: Anuj Chauhan
Type: User
Company: Particle41
Bio: Yet an¤ther seeker | Anime L○ver | Excellent C♡♡k | Psych¤ Enthusiast | Wannabe Musician/Artist | Avid Reader
Twitter: hanChauJuna
Location: Pune
Blog: hanchau.github.io