Built-in and user defined functions in Python

# Built-in functions in Python [importing math package] import math x=int(input(“Enter any number:”)) print(“Square root of {0} is {1}”.format(x,math.sqrt(x))) print(“Square of {0} is {1}”.format(x, x*x)) print(“Cube of {0} is {1}”.format(x, x*x*x)) OutPut: Enter any number:5 Square root of 5 is 2.23606797749979 Square of 5 is 25 Cube of 5 is 125   User-defined functions  def

Share

Built-in and user defined functions in Python Read More »

Python Programs for Beginners – Part2

Basic Python Programs for Beginners – Part 2 # program to display employee salary information name=input(“Enter Name:”) dept=input(“Enter Department:”) basic=int(input(“Enter Basic salary:”)) bonus=basic*(5/100) pf=basic*(10/100) net=basic+bonus-pf print(“Employee Details”) print(“—————————–“) print(“Name=”, name) print(“Basic=”, basic) print(“Bonus=”, bonus) print(“Provident Fund=”, pf) print(“Net salary=”, net) OUTPUT: Enter Name:Ganesh Enter Department:Finance Enter Basic salary:25000 Employee Details —————————– Name= Ganesh Basic= 25000

Share

Python Programs for Beginners – Part2 Read More »

Python Programs for Beginners – Part1

Basic Python Programs for Beginners – Part 1 Watch This Video session for How to Run your First Python Program # Sum of two numbers program on python a=int(input(“Enter Num1:”)) b=int(input(“Enter Num2:”)) c=a+b print “sum of {0} and {1} is {2}” .format(a,b,c) c=a-b print “subtraction of {0} from {1} is {2}”.format(a,b,c) c=a*b print “muliplication of

Share

Python Programs for Beginners – Part1 Read More »

CAT 2019

CAT – Common Admission Test 2019 Registration opens: Aug 7, 2019 at 10AM Registration ends: Sep 18, 2019 at 5PM Admit Card Download: Oct 23, 2019 at 5PM Exam/Test Date: Nov 24, 2019 Apply here:  Click this link for apply online About: CAT is a computer-based test for admission for MBA or management program in

Share

CAT 2019 Read More »

Full stack developer

What is a full-stack developer? An Information Technology (IT) expert who can work both on a user interface (UI)or client-side and user experience (UX) or server-side technologies and this person knows the 3-tire model of an application. Presentation tier [UI] Business Logic [programming /UX] Database layer [Database server] Now a day’s full-stack developer is in

Share

Full stack developer Read More »

Stored Procedure in MYSQL WAMP

Stored Procedure in MYSQL using PHPMYADMIN Pre-compiled collection of T-SQL statements stored with a name Written by database developers or DBAs Used to perform administrative tasks, or apply complex business rules Contain DML statements Benefits of Stored Procedures —————————————- Increased execution speed Faster access to data Modular programming Consistency Enhanced security   Types of Stored

Share

Stored Procedure in MYSQL WAMP Read More »

Phone and Email Validation – Javascript

Phone and Email Address validation using Javascript The below example with source code explains how to validate phone/mobile number and email address. Source code: [Create the following program in an editor] <html> <head> <script type=”text/javascript”> function Validation() { var a=document.form.phone.value; var b=document.form.email.value; if(a==””) { alert(“please Enter the Contact Number”); document.form.phone.focus(); return false; } if(isNaN(a)) {

Share

Phone and Email Validation – Javascript Read More »

Share
Scroll to Top