“Variable in Python” Code-Antworten

Variablen in Python

Simple terms: a variable is a box that you can put stuff in it such as
strings int booleans
Encouraging Elk

Python -Variablen

name=input('What is your name')
email=input('what is your email')
print(f"Hi {name}! We will be contacting you shortly at {email}")
Crazy Cottonmouth

So erstellen Sie eine Variable in Python

variable1 = "Hello"
variable2 = 13
variable3 = False
TheCoder1001

So erstellen Sie eine Variable in Python

myVar = "Hello this is a variable!")
print(myVar)
# Prints "Hello this is a variable!"
Cheerful Cassowary

Wie man eine Variable in Python macht

integer = 4 #int
string = "STRING" #string
boolean = True #Boolean. Can set it to False, too
Blue Badger

Variable in Python

#creating variable in python

a = 15 #it is called integer

b = 'apple' #any word or number written in this "" is called string

c = False #True or False is called boolean

d = 2.45 #any number with point is called float

print(a)
print(b)
print(c)
print(d)

#it will print all the values
Coding boy Hasya

Ähnliche Antworten wie “Variable in Python”

Fragen ähnlich wie “Variable in Python”

Weitere verwandte Antworten zu “Variable in Python” auf Python

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen