Posts

Showing posts with the label learn with fun

Pizza For Free

Image
This is the first version of my code, you can modify it for improvement. I am sharing this code so that you can think about making different kinds of softwares. # -*- coding: utf-8 -*- print("|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||") print("") print("\t\t\t\t\t\t WELCOME TO FREE PIZZA MAKER >>> NO MONEY PIZZA") print("\t\t\t\t\t\t\t WE BAKE, YOU TAKE") print(" ") print("|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||") orderCount = 0 def pizzaTypesAndSize(orderCount, counterListForPizzaType, counterListForPizzaSize, typeList, sizeList): listComb = [] while(orderCount < 5): #for pizza type print("Please Select the Pizza Type:") countT = 0 for i in (typeList): countT +=1 print(i) print("-----------------------------------------------------...

Coding : A to Z

Image
Let's learn, how to draw A to Z alphabets using python 3.6: #function for drawing alphabets def alphabet(data): str = "O" dot = " " j = -1 #for drawing A if data == "A": for a in range(4,5): print(str) * a for a in range(1,2): print(str) + (dot)*2 + str for a in range(1,2): print(str) + (str)*2 + str for a in range(1,3): print(str) + (dot)*2 + str #for drawing B elif data == "B": for a in range(4,5): print(str) * a for a in range(1,2): print(str) + (dot)*2 + str for a in range(1,2): print(str) + (str)*3 for a in range(1,2): print(str) + (dot)*2 + str for a in range(1,2): print(str) + (str)*3 #for drawing C elif data == "C": for a in range(4,5): print(str) * a for a in range(1,4): print(str) for a in range(1,2): print(str) + (str)*3 #for drawing D elif data == "D": for a in range(4,5): print(str) * a for a in ra...

Learn C++ in Depth

Image
I was searching about books related to programming that were written by Pakistani in urdu,  I found this book for C++.  I want to share it so that you can learn C++ easily in depth. so learn and enjoy :)

Web Engineering : A Dialogue

Image
Down below web engineering is explained by using a dialogue between Mr. X and Mr.Y : X:  hi, Mr. Y do you know what is a web? Y: The thing a spider made....  X: oh not that one, let me tell you that!  A web is a platform where people from this whole world are connected. Like you said a spider web, it also shows the connection by connected, fragile spider silk strands. Y: But, why people needs to connect? X: They are connected because Man is a social animal so are the humans. And they need each other. They cannot live alone. They are dependent on each other for their day to day tasks. Y: Tasks like? X: Tasks like, if you want to make coffee and you don't know how to make it, what would you do ? Y: I will Google it.. X:  So that Googling is what you do to accomplish the task of making coffee by using web.. Y: Alright, so what's web engineering? X:  Well, first understand what is engineering. Engineering is to ...