My Python projects Project 1: Write a coad to add two numbers # 1. addition of two numbers-- print ( "Addition of two numbers" ) print ( "Enter first number" ) a = int ( input ()) print ( "Enter second number" ) b = int ( input ()) print ( "the sum the numbers is--" ) print (a+b) # addition of two numbers-- Result for the above code E:\languages\python codeing>python main1.py Addition of two numbers Enter first number 5 Enter second number 56 the sum the numbers is-- 61 Project 2: Create a diictonary and take input from user and return the meaning print ( "Dictionary" ) print ( "Enter the word to find in the Dictionary" ) d1 = { "WAN" : "Wide area network" , "LAN" : "Local area network" , "SAN" : "Storage area network" , "CAN" : "Campus area network" , "MAN" : "Metropolotic area network" "VPN" : &q
Comments
Post a Comment