Posts

Calculator in C++

  #include <iostream> #include <cmath> using namespace std ; void calculator (){     float num1 , num2 ;     string opr ;     cout << "<<------!This is simple calculator for calculations!----->>" << endl ;     cout << "Enter Number: " ;     cin >> num1 ; cout << endl ;     cout << "choise operation: +,-,*,/, squareRoot(r), square(s): " ;     cin >> opr ; cout << endl ;     if ( opr == "+" ){         cout << "Enter Number: " ;         cin >> num2 ; cout << endl ;         cout << "Your result: " << num1 + num2 << endl ;     }     else if ( opr == "-" ){         cout << "Enter Number: " ;         cin >> num2 ; cout << endl ;         co...

making table and divide section

 html file <! DOCTYPE html > < html lang = "en" > < head >     < meta charset = "UTF-8" >     < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >     < title > Welcome </ title >     < link rel = "stylesheet" href = "style.css" > </ head > < body >     < div class = "padded3" >     < div class = "container" >         < div class = "left" >                 < div class = "padded" >         < img src = "hack.jpg" width = "150" , height = "150" ></ img >         < p > Name : Deep </ p >         < p > DOB : 11 feb, 1947 </ p >     </ div >     </ div >             < div class = "right" ...

Python String

 '''a = "Dignity Cafe" print(a[0])''' for x in "Dignity Cafe":     print(x) Check String a = "Dignity Cafe" print("Cafe" in a)

Wallpapers

Image
 

Typing Achiment

Image
20 April 2023  

Become Healthy Goal - Python Program

  def gettime(): import time return time.asctime(time.localtime(time.time())) def log(): while True : choice = int ( input ( "Enter 1 for Diet, 2 for exercise: " )) if choice== 1 : diet= input ( "Enter Food Name: " ) with open ( "deep-food.txt" , "a" ) as d: d.write( str ([ str (gettime())]) + ": " + diet) print ( "Add successfuly!" ) elif choice== 2 : exercise= input ( "Enter Exercise Name: " ) with open ( "deep-exercise.txt" , "a" ) as d: d.write( str ([ str (gettime())]) + ": " + exercise) print ( "Add Successfuly!" ) ans= input ( "Do you want to add 'diet or exercise' \n Type Y for yes and Type N for no: " ) if ans== 'n' : print ( "Good bye!" ) break def retreiv...

F-STRINGS

  # x=["python","c++"] # # print(f"python,{'deep'},c++,{'programmer'}") # for item in x: # print(x,end="#") # f=f"{'hello'}" a = "This is python" b= 15 c= f" { 'Deep' } { a } { b } " print (c) print ( "Deep" ,a,b,)