Posts

Can we get a job in google in after BCA ? How ?

Can we get a job in google in after BCA ? How ?  Getting a job in Google or any Big Company after doing BCA  Now, that's a question of my interest. I'm in third year of BCA and there was a time when I was absolutely obsessed with getting a job at Google (someday). First of all, Google is not the garden you hear about in fairy tales. Research well and think more than just once if you'll be comfortable for their work culture. As far as the jobs are concerned, I'd say there is a possibility. Google is known to hire people with rather something unexplainable here educational background; so there is a good possibility that BCA, no matter however small it may appear to you, may still make a mark. Other than that, it's not entirely necessary for you to go and apply for a technical job at Google as soon as you graduate. Did you consider studying further or trying out other jobs and then diving into Google someday? Well! I have. Now that all's been said, here is what I...

Reversing a List in Python

  Reversing a List in Python Code - --------------------- # Reversing a list # Method 1 f = [ 1 , 3 , 4 , 5 , 6 , 6 , 7 , 43 , 3 , 5 , 45 ] f = [i for i in reversed (f)] print (f) # Method 2 f.reverse() print (f)

I made a to do list system in python.

  To do list system in python Code -  ------------------------------------ def main_function (): """This function basically add and remove your task from a list..""" to_do_list = [] while ( True ): a = input ( "What you want to do? \n 1- Adding elements in to do list. \n 2- Have completed a task in to do list.. \n 3- To show to do list. \n " ) if a == '1' : while ( True ): element = input ( "Enter the task which you want to add in to do list: " ) to_do_list.append(element) opinion = input ( "Wanna add one more task then press enter otherwise enter 1: " ) if opinion == '' : continue else : break elif a == '2' : while ( True ): print (to_do_list) remove_element = int ( input ( "Enter the inde...

Different ways to clear a list in python.

 Different ways to clear a list in python Code -  -------------------------------------- # Different ways to clear a list in python # Method 1 list3 = [ "anant" , "shiv" , "hariom" , "utsav" , "shorya" , "ajay" , "carry" , "harry" ] def list_cleaner (list): list.clear() print ( "Before: " , list3) list_cleaner(list3) print ( "After: " , list3) # Method 2 list4 = [ "anant" , "shiv" , "hariom" , "utsav" , "shorya" , "ajay" , "carry" , "harry" ] print ( "Before: " , list4) list4 = [] print ( "After: " , list4) # Method 3 list3 = [ "anant" , "shiv" , "hariom" , "utsav" , "shorya" , "ajay" , "carry" , "harry" ] def list_cleaner5 (list): """This function will clear the list you put as an argume...

Python program to check that a list have elements in it or not .

 Python program to check that a list have elements in it or not. Code -  -------------------------------- # Python program to check that a list have elements in it or not . list2 = [ "anant" , "shiv" , "hariom" , "utsav" , "shorya" , "ajay" , "carry" , "harry" ] def element_absence_checker (list): a = input ( "Enter the name of element which you want to check:- " ) for i in list: if i == a: print ( "Element present in list.." ) break else : print ( "Element doesn't present in list." ) element_absence_checker(list2)

Python way to find length of list

  Python way to find length of list Code --  ------------------------------------- list = ["1", "a", "2", "b"] print(len(list)) list1 = [""]

Should we start preparation for BCA/MCA from class 11th ? How ?

 Should we start preparation for BCA/MCA from class 11th ? How ? There isn't much to prepare for BCA/MCA while in class 11th. Just few basics thing to take in mind. Anyhow, Try that you have Computer science in class 11. While all works fine, both computer science and maths are pretty useful. Maths not so much as computer science but will definitely be useful. Science or other subjects aren't really needed that much in most times and if needed you can always learn the topic later on or take help from a knowledgeable person in that field. Make sure to learn at least few programming languages and polish your skills on it. Do focus on algorithm part - That's important. Try to learn different but revelant topics like Cloud Computing or Artificial Intelligence, Cryptography, Networking, etc. Do the one that will be best for you(Depending on which career you want to go for). You can and actually should learn basics behind how actually computers and rest of stuff work. You will be...

Python program to interchange first and last elements in a list.

  Python program to interchange first and last elements in a list Code - -------------------- al = ['First element', 'b', 'c', 'd', 'Just', 'Last element'] def reverse_do():     print(al)     a = (len(al))     b = a - 1     c = al[b]     d = al[0]     al.pop()     al.remove(d)     al.append(d)     al.insert(0, c)     print(al) reverse_do()

Online Library system | Made with python

Online Library system Code -- ------------------------------- import time def getdate():     return time.asctime() class Library:     # list_of_books = ["S.Sc. All in one", "Maths R.D. Sharma", "D.K.", "Maths N.C.E.R.T."]     def __init__(self, book_list, library_name):         self.list_of_books = book_list         self.library_name = library_name     def display_book(self):         print("Displaying...")         time.sleep(1)         return f"{self.list_of_books}\n"     def lend_book(self):         name = input("Enter your name: ")         name_of_book = input("Enter the name of book which you want to borrow: ")         if name_of_book not in self.list_of_books:             print("Book not available !! or incorrect book name entered !!")   ...

Diamond Shape problem in python.

  Diamond Shape problem in python. Code -  ------------------------------------- class A:     def met(self):         return "Hello this is a diamond shape problem of class A" class B(A):     def met(self):         return "Hello this is a diamond shape problem of class B" class C(A):     def met(self):         return "Hello this is a diamond shape problem of class C " class D(B, C):     def met(self):         return "Hello this is a diamond shape problem of class D" a = A() b = B() c = C() d = D() print(d.met())

Over & Super in python.

 Over & Super in python. Code - ------------------------------ class A : classvar1 = "Class variable of class A" def __init__ ( self ): self .var1 = "Instance variable of class A" self .special = "This is special variable" self .instance_variable = "Instance variable of class A" class B (A): classvar1 = "Class variable of class B" def __init__ ( self ): self .var1 = "Instance variable of class B" self .instance_variable = "Instance variable of class B" super (). __init__ () # print(super(B, self).classvar1) hello = A() by = B() # print(by.special) print (by.var1, by.instance_variable) # print(by.var1) # print(by.classvar1)

Single Inheritance, multiple inheritance and multilevel inheritance in python.

Multilevel inheritance in python  A program as an example. Code - -------------------------------- class ElectronicDevice:     refrigerator = 1000     def __init__(self, name, watt):         self.name = name         self.watt = watt     def rupee_checker(self):         a = 283         if self.watt < 1000:             return f"Your Electrical Device consumes less than {a} units per year."         elif self.watt > 1000:             return f"Your Electrical Device consumes more than {a} units per year."         elif self.watt == 1000:             return f"Your Electrical Device consumes {a} units per year." class PocketGadget(ElectronicDevice):     MaH = 3000     def __init__(self, name, mah):         se...

Using class objects, Instance variables, and class variables, class methods and static method in python

  Using class objects, Instance variables, and class variables, class methods and static method in python Code - ------------------------------------ class Students:     number_of_buildings = 4     # def Majra(self):     #     return f"Number of toys are {self.toys}, and number of buildings are {self.number_of_buildings}"     def __init__(self, name, aclass, section, rollnumber, school, stream):         self.name = name         self.standard = aclass         self.section = section         self.Roll_number = rollnumber         self.School = school         self.stream = stream     def eye_checker(self):         return f"Class is {self.standard}, and name is {self.name}"     @classmethod     def hello(cls, no_of_new_buildings):         cls.numb...

Song player | Made by python

  Song player Obviously it's not that much perfect as windows or phone's music player's are but for me it's enough to use in this we can play music specifically and in mixture also.. ------------------------------------------- from playsound import playsound opinion = input ( "In which type you want to listen songs.. \n 1: For specifically.. \n 2: For mix continiously... \n " ) if opinion == '1' : print ( "Songs available \n 1: Alan Walker - Fade \n 2: Alan Walker - Force \n 3: Alan Walker - Spectre \n 4: Cartoon - On & On \n 5: Different Heaven & EH!DE - My Heart \n 6: Jarico - Landscape " ) song = input ( "Enter the number of song which you want to here \n " ) if song == "1" : print ( "Playing..." ) playsound( 'D: \\ d data \\ tunes 3 \\ Alan Walker - Fade [NCS Release].mp3' ) elif song == "2" : print ( "Playing..." ) pl...

Health Management System | Made with python.

  Health Management System This system basically works for 3 persons Harry, Rohan and Hammad. Their food and exercise is recorded. ----------------------------- def getdate (): import datetime return datetime.datetime.now() def see (a): if a== '1' : h= input ( "For food enter f and for exercise enter e: " ) if h== "f" : with open ( "harry-food.txt" ) as f: content = f.read() print (content) elif h== "e" : with open ( "harry-exercise.txt" ) as f: content = f.read() print (content) else : print ( "Enter f or e !" ) elif a== '2' : r = input ( "For food enter f and for exercise enter e: " ) if r == "f" : with open ( "rohan-food.txt" ) as f: content = f.read() print (content) ...

Study recorder made with python.

Study recorder This program just record the topics what ever you have studied in specified subjects. And after some time you can also check out the topics what you have studied... def getdate():     import datetime     return datetime.datetime.now() print("[This is a Study Recorder programme which recordes your study topics on various subjects.]") try:     while (True):         opinion = input("For recording a record enter 1 and to look a record of any subject enter 2\n")         if opinion == '2':             print("Your subjects:-\n1: Accounts\n2: Economics\n3: Business Studies\n4: English\n5: Music")             Rsubject = input("Enter the subject's number which you want to\nsee the topics which you have learn\n")             if Rsubject == "1":                 print("You chosed 1 for Ac...

Water Assistant | Made with python

  Water Assistant | Made with python Basically I made this program to manage my water consumed in a day and it helped me a lot.. ______________________ import datetime print("Hi! I am you Water Assistant !") clear = input("Starting new day press enter for clearing old stuff.. and not then press 1: ") anticlear = '' if clear == '':     with open("Waterdate.txt", "w") as f:         f.write(anticlear)     with open("waterdetail.txt", "w") as f:         f.write(anticlear)     print("Data cleared now start you newly fresh day...:))") else:     pass def time():     """to get date and time """     date = datetime.datetime.now()     return date with open("waterdetail.txt", "r") as f:     # just for printing previous value     content = f.read() with open("waterdate.txt", "r") as f:     date1 = f.read()     # pahaile se hi number of glasses ...