Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pythn programme for adding user unputs

# Store input numbers
num1 = input('Enter first number: ')
num2 = input('Enter second number: ')

# Add two numbers
sum = float(num1) + float(num2)

# Display the sum
print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))
Comment

PREVIOUS NEXT
Code Example
Python :: pandas dataframe lists as columns 
Python :: otp generation in python 
Python :: convert list of list to list python 
Python :: dataframe to text file 
Python :: xgboosat save_model 
Python :: radix sort in python 
Python :: python code to print prime numbers 
Python :: async sleep python 
Python :: date strftime python 
Python :: django orm sum 
Python :: copy website python 
Python :: comment in python 
Python :: docker django development and production 
Python :: how to count the occurrence of a word in string python 
Python :: how to create a python script to automate software installation? 
Python :: delete virtual environment in python windows 
Python :: convert all images in folder to jpg python 
Python :: pymupdf extract all text from pdf 
Python :: count repeated characters in a string python 
Python :: Date Time split in python 
Python :: python multiaxis slicing 
Python :: Python remove punctuation from a string 
Python :: selenium open inspect 
Python :: tabula python 
Python :: how to check current version of library in python 
Python :: python pygame how to start a game 
Python :: python int to binary string 
Python :: check how many times a substring appears in a string 
Python :: twitter api v2 python tweepy 
Python :: good python ide 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =