Posts

Showing posts with the label code

Guess Number GAME : HTML

Image
Python is pretty good language but HTML is pretty web language... so, in first semester I wrote a python code for guess number game, but, now we will learn how to make a guess number game using HTML... so below is the code for it, I will try to upload all my codes on github... and will share a link with you. But for now consider the below mentioned code, in HTML and styling using internal CSS. Code: <!DOCTYPE html> <html> <head><title></title></head> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" ></script> <style> body { background : url("https://cdn.pixabay.com/photo/2015/01/08/15/54/lines-593191_960_720.jpg") ; } h1 { margin-top : 10px ; font-family : cursive ; color : black ; background : white ; } table { padding-top : 20px ; border : 10px solid purple ; padding-left : 60px ; padding-bottom : 20px ; } td { width : 20 %; heig...

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("-----------------------------------------------------...

Turtle : Not Coming Slow

Image
In the above image Mr.Turtle is looking so angry, but don't worry Mr.Turtle, in this blog post we will talk about you, and your family member python ... Python has many family members (libraries) and one of the Graphical User Interface library of python is Turtle Graphics . Have you ever seen Animal Planet and Discovery channels on TV? There discoverers like to discover real pythons and turtles. On the other hand, kids like drawing and coloring them on paper, but programmers are fond of giving commands to computer via python and turtle, and then they make something out of that. Yes, you guessed right! Today we'll have a look at Python Turtle Graphics , so let's begin... Below is a code, which outputs a car and some scenery around it, (Not a real one, just on the screen!) # -*- coding: utf-8 -*- from turtle import * #code for drawing car begins pensize(10) color("red","black") begin_fill() forward(150) print(pos()) sety(100) print...