QUESTION IMAGE
Question
2 multiple choice 1 point
how do we define variables in python?
using the \def\ keyword
using the declaration statement
using the assignment operator \=\
using the \var\ keyword
Brief Explanations
In Python, variables are defined using the assignment operator =. For example, x = 5 defines a variable x and assigns it the value 5. The def keyword is used to define functions. Python does not have a separate declaration statement like some other languages (e.g., C, Java). And there is no var keyword for variable definition in Python.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
Using the assignment operator "="