Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

add in python

prime_numbers = {2, 3, 5, 7}

# add 11 to prime_numbers
prime_numbers.add(11)


print(prime_numbers)

#if the element is already in the set, it won't add it

# Output: {2, 3, 5, 7, 11}
Comment

how to add in python

a = int(input())
b = int(input())
s = a+b
print(S)
Comment

add in python


age += 1

Comment

python add

1 + 1 # 2

a = 1
b = 2
a + b # 3
Comment

add in python

a = 6
b = 12
c = a + b
#That is how you can add two numbers or variables 
Comment

adding in python

#to add 2 digits
print("enter 2 numbers")
a =int(input("enter 1 st number"))
b =int(input("enter 2nd number"))
c = a+b
print ("here is your answer",c)
Comment

PREVIOUS NEXT
Code Example
Python :: python example 
Python :: python terminal game 
Python :: how to exit program in python 
Python :: uppercase string python 
Python :: np.mean 
Python :: sending email with django 
Python :: reading doc in python 
Python :: regex name extract 
Python :: combine two columns pandas 
Python :: get definition of word python 
Python :: clone keras model 
Python :: python how to skip iteration 
Python :: face detection code 
Python :: matplotlib twinx legend 
Python :: how to run python file from cmd 
Python :: absolute value in python 
Python :: remove white border matplotlib 
Python :: save model history keras 
Python :: python async await run thread 
Python :: os file size python 
Python :: find all occurrences of an element in a list python 
Python :: python area of rectangle 
Python :: pandas read to a csv file 
Python :: how to calculate fibonacci numbers in python 
Python :: numpy array from list 
Python :: python isinstance 
Python :: python string cut to length 
Python :: python string manipulation 
Python :: how to access variables from a class in python 
Python :: adding one element in dictionary python 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =