Hi all! I'm working on learning a little Python, but it's syntax is throwing me - I come from more a JS background.
How do I create a variable in Python?
Thanks!
Hi all! I'm working on learning a little Python, but it's syntax is throwing me - I come from more a JS background.
How do I create a variable in Python?
Thanks!
For further actions, you may consider blocking this person and/or reporting abuse
Kanish Edureka -
lorenz1989 -
Neelam -
GSFSNSICIESA -
Once suspended, natqueencole will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, natqueencole will be able to comment and publish posts again.
Once unpublished, all posts by natqueencole will become hidden and only accessible to themselves.
If natqueencole is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Natalie.
They can still re-publish the post if they are not suspended.
Thanks for keeping CodeNewbie Community 🌱 safe. Here is what you can do to flag natqueencole:
Unflagging natqueencole will restore default visibility to their posts.
Top comments (3)
Hello! Wonderful question!
The simple syntax for a variable is:
variable_name = value
EXAMPLES:
name = "Kai"
is_true = True
zero = 0
Hope this helps!
One of the coolest things about python is how simples it's syntax is:
name_of_variable = value
cat = "Jack"
You just use:
variable_name = 'Name', for strings
variable_name = 1, for numbers. Those one don't carry quotes.