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 random distribution 
Python :: how to make window pygame 
Python :: django.db.utils.IntegrityError: NOT NULL constraint failed 
Python :: remove last element in list python 
Python :: how to create a variable that represents any integer in python 
Python :: # get the largest number in a list and print its indexes 
Python :: remove timezone from column pandas 
Python :: how to block a ip adress 
Python :: selenium python element id 
Python :: propositional logic python 
Python :: how to get the user argent in django 
Python :: get current scene file name godot 
Python :: pandas merge_asof direction 
Python :: how to print 2d neatly in python 
Python :: gnuplot sum over a column 
Python :: extract x y coordinates from image in pdf python 
Python :: pss signatures python 
Python :: tkinter yt downloader with resolution 
Python :: python update pip windows 
Shell :: ubuntu restart sound 
Shell :: remove all docker iamges commandl 
Shell :: ubuntu media codecs 
Shell :: brew install gcloud 
Shell :: date linux format yyyymmdd 
Shell :: conda install ipywidgets 
Shell :: serial number linux 
Shell :: gyp: No Xcode or CLT version detected! 
Shell :: conda install xlrd 
Shell :: untar a file 
Shell :: widget tweaks django install 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =