Skip to main content

Posts

Showing posts from December, 2020

Top 5 mistake i made as a computer science engineer.

Top 5 mistake i made as a computer science engineer In this blog i will walk you through my mistake as a computer science engineer Yes as a person we make a lot of mistake and for me as a computer science engineer i have made a lot of mistake but in this blog I'm going to share my top 5 mistake. 1. Involve in a tutorial hell Tutorial hell is a way of learning in which we get stuck in a tutorial without learning outside of the tutorial, it is like learning from the tutorial and build the exact same project which the instructor have taught us and also it may be just copy and paste the code, after completing the tutorial we start another tutorial and repeat the same thing again and again, without adding our feature to the project or build it without any help from the instructor. 2. Trying to learn everything Yes as a computer science engineer student i try to learn everything and it is a huge mistake because i learn a bit of python and then jump to javascript and then a bit of javascr

Why two factor authentication is very important?

Why two factor authentication is very important? Here is why two factor authentication is so much important to all of us, first i will start off with the meaning of two authentication What is a two factor authentication? Two factor authentication referred to us a two step of verification, Most of the user use one factor authentication to login to their social media or to any platform in the internet which has an authentication. So using a two factor authentication is where after giving the user name and password we also have to give a token or an OTP or any other details to verify that it was us who login into the platform. Example:   Suppose you sign-in into google with email if you use two factor authentication after you give the email and password while submitting the information google will send an OTP to your mobile phone number so that you can enter the OTP into the system, so if the OTP match then only the google will accept you login into google. So i hope by now you have a bit

Python programe to find the factorial of a number

 Python program to find the factorial of a number Factorial number of a number is a product from 1 to the number which is from 1 to n where n is the number Example : factorial of 5 = 1*2*3*4*5 = 120 Code: #function to find factorial number def facto(n):     factorial = 1     for i in range(1,n+1):         factorial = factorial * i     return factorial #Take the input from the user and store in n n = int(input()) if n == 0: #factorial of 0 is always 1     print(1) else:     print(facto(n)) #other than 0 we have to find the factorial number by calling the function Input : 5 Output : 120 There is another method to find factorial number using recursion. Feel free to check the code in a code editor and try it out and also i am welcome to any suggestion. Here is the previous post : https://shotwithcode.blogspot.com/2020/12/python-automation-with-selenium.html Reach through my instagram : https://www.instagram.com/shotwithcode/

Python automation with selenium.

Automate with selenium In this blog we are going to see how to automate some task with selenium. Selenium is an opensource framework which is used for testing web application by scrapping into the web site. To apply selenium in python for testing an application we need to follow some step. So in these this blog we are going to explain how to use selenium to go to the google and search for shotwithcode blog and read the blog. Step1: using pip in python we have to install selenium "pip install selenium" Step2: We need a web driver in which it will run the browser and tell the browser what to do. So if we use chrome we need to download chrome driver else if we use other browser then we need to download the web driver for that browser You can download the Chrome web driver here https://chromedriver.chromium.org/downloads Remember to download the chrome driver related to the chrome version we have Step3:After download the driver extract the file and save into a location which is e