“Python Add/Change List Elements” Kode Jawaban

Tambahkan 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}
Crazy Coyote

cara menambahkan python

a = int(input())
b = int(input())
s = a+b
print(S)
Prickly Penguin

Tambahkan Python


age += 1

Lovely Lion

Menambahkan 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)
Jolly Jay

Jawaban yang mirip dengan “Python Add/Change List Elements”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya