Skip to main content

Posts

link  
Recent posts

Age Calculator in Python and Tkinter

Age Calculator Python Source Code  Python and Tkinter soure code for age calculator project # Source code for creating the age calculator from tkinter import * from datetime import datetime # Main Window & Configuration App = Tk() App.title("Age Calculator") App['background'] = 'white' App.geometry('300x300') # 'Enter Your DOB' Label lbl = Label(App, text='Enter Your DOB', background='white', foreground='black') lbl.grid(row=0, column=0, columnspan=2) # Date Label & Entry widget dateL = Label(App, text='Date:', background='white', foreground='black') dateE = Entry(App, background='white', foreground='black', width=2) # Month Label & Entry widget monL = Label(App, text='Month:', background='white', foreground='black') monE = Entry(App, background='white', foreground='black', width=2) # Year Label & Entry widget yrL = Label(App,

To-Do list Project

 To-do list Project in Javascript Program to create a to-do list project in HTML, CSS and Javascript. <!DOCTYPE html> <html lang="en"> <head>   <meta charset="UTF-8">   <title>To Do List</title> </head> <body>   <div style="margin-left: 20%; margin-right: 20%; margin-top: 5%">     <h1 align="center" style="color: Green; font-family: Lucida Console"> My Task List</h1>     <br>     <div class="row" align="center" style="border: 2px solid green ;  border-radius: 20px;  height: 15%;  width: 60%; margin-top: 20px; margin-left:20% ; margin-bottom: 3%; ">       <form>         <div class="input-group">           <input type="text" id="box" style="width:20vw;  height: 2vw; margin-top: 20px; border: none; border-bottom: 2px solid green" placeholder="Ad
Digital Clock Project in Javascript Create a digital clock using HTML, CSS, and javascript. <html lang="en"> <head>   <meta charset="UTF-8">   <title>Digital Clock</title> </head> <body> <div style="margin-left: 20%;  margin-right: 20%; margin-top: 5%"; align: center;> <h1 align="center"  style="color: Green; font-size: 60px;  font-family: Gill Sans;"> Digital Clock </h1>     <div class="row" align="center" style="border: 2px solid green ; border-radius: 20px; height: 20%; width: 70%; margin-top: 20px; margin-left:10% ; margin-bottom: 3%; background-color: Green; ">        <h1 id="clock"  style=" font-family: Gill Sans; font-size: 60px;  align:center; color: White;"></h1>     </div> </div> <script type="text/javascript">

Number Guessing game In C Programming Language

Guess the Number Number Guessing Game in C language. /* Program to make a number guessing game */ #include<stdio.h> main() {  int i,num=51,flag=1,guess,count=0;  printf("Guess the number\n");  scanf("%d",&guess); do  {   if(num==guess)   {    flag=0;   }   else if(guess<num)   {    flag=1;    printf("Your guess is lower than the number\n");    count++;   }   else   {     flag=1;    printf("Your guess is greater than the number\n");    count++;   }   if(flag==1)   {     printf("Sorry! Please guess it again\n");    scanf("%d",&guess);   }  } while(flag);  printf("Congrats! You guessed the number %d\n",num);  printf("Number of trails: %d\n",count); } Watch the video :  https://youtu.be/i6Xlvvm8rd4

Python Turtle Tutorials : Program to create a Ninja Circle

 Python Turtle tutorials Program to create amazing  Ninja Circle logo design in Python.  Code :  """ Program to create a Bi-pyramid structure Source : CODE PROBLEM (Youtube) """ import turtle turtle.Screen().bgcolor( "black" ) # set the background color to black turtle.speed( 0 ) # the fastest speed turtle.pensize( 2 ) # set the width of the drawing pen rainbow = [ 'red' , 'orange' , 'yellow' , 'green' , 'blue' , 'indigo' ] for i in range ( 110 ): turtle.color(rainbow[i% 6 ]) turtle.fd( 100 ) turtle.right( 28 ) turtle.fd( 30 ) turtle.left( 90 ) turtle.fd( 70 ) turtle.right( 30 ) turtle.fd( 50 ) turtle.penup() turtle.setposition( 0 , 0 ) turtle.pendown() turtle.right( 1 ) #hide the turtle after the shape has been drawn turtle.hideturtle() turtle.done() Output :      Learn through video : https://youtu.be/DhWbPnVfonY

Python Turtle tutorials : Create a Bi-Pyramid structure

 Python Turtle Tutorials  Create a Bi-Pyramid structure using Python  Code :           """ Program to create a Bi-pyramid structure Source : CODE PROBLEM (Youtube) """ import turtle scr = turtle.Screen() # create screen object scr.bgcolor( 'black' ) turtle.speed( 0 ) # the fastest speed turtle.pensize( 2 ) # set the width of the drawing pen turtle.color( 'skyblue' ) # set pencolor to 'skyblue' for i in range ( 30 ): turtle.fd(i* 10 ) turtle.right( 120 ) for j in range ( 29 , 0 ,- 1 ): turtle.fd(j* 10 ) # move forward turtle.left( 120 ) turtle.hideturtle() # hiding the turtle after the completion of the drawing turtle.done() # for holding the screen Output : Learn from video : Watch on youtube