Posts

Showing posts from May, 2022

Complete HTML5 course

Heading Paragraph and Emmet <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Heading Paragraph and Emmet </title> </head> <body> <h1>Heading</h1> <h2>Heading</h2> <h3>Heading</h3> <h4>Heading</h4> <h5>Heading</h5> <h6>Heading</h6> <!-- lorem23 for dummy text with 23 words --> <p>Lorem ipsum dolor sit amet <strong>use strong for bold text</strong> adipisicing elit. Vitae eius dicta ullam ex error enim corrupti fuga, voluptas porro doloremque aperiam, empesis <em>this is for emphesise or italic</em> recusandae tempora voluptates expedita consectetur magnam sae...

Login Page design using Html and CSS only

Image
html code <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="https://kit.fontawesome.com/0b287dd95e.js" crossorigin="anonymous"></script> <title>Login to MySky</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="container"> <form action=""> <h1>Login to MySky</h1> <div class="box"> <i class="fa fa-envelope"></i> <input type="email" name="email" id="email" placeholder="Enter Your Email"> </div> ...

Python virtual assistance

Python vitual assistance This virtual assistance is just like your google assistanece or siri!, it perform many tasks like open browers/youtube/google, told you time, date and days, This is a Beta version of this assistance so it not perform complicated task right now you can add more code and bring it to next level ! import pyttsx3 import datetime import speech_recognition as sr import wikipedia import webbrowser import os import requests from bs4 import BeautifulSoup import pywhatkit engine = pyttsx3.init('sapi5') voices = engine.getProperty('voices') # print(voices[1].id) engine.setProperty('voice',voices[1].id) # l = ['play music','search youtube'] def speak(audio): engine.say(audio) engine.runAndWait() def wishMe(): hour = int(datetime.datetime.now().hour) if hour &GreaterEqual; 0 and hour < 12: speak("good morning !") elif hour &GreaterEqual; 12 and hour < 18: ...

Python Password Generator

Python Random Password Generator with the help of below code you can get a random combination of alphanumaric + punctuation strong password import string import random s1 = string.ascii_lowercase # print(s1) s2 = string.ascii_uppercase # print(s2) s3 = string.digits # print(s3) s4 = string.punctuation # print(s4) while True: try: plen = int(input("enter password length\n")) break except ValueError: print("Please Enter numeric value") s = [] s.extend(list(s1)) s.extend(list(s2)) s.extend(list(s3)) s.extend(list(s4)) # print(s) # random.shuffle(s) # print(s) print("Your password is: ") # print("".join(s[0:plen])) print("".join(random.sample(s,plen))) with open("Saved_Password.txt","a") as f: f.write(str("".join(random.sample(s,plen)))) f.write("\n") print("Your password has been saved") Happy coding :)