Can variables hold numbers?

QuestionsQuestions8 SkillsProYour First Python LabSep, 27 2025
0123

Yes, variables can hold numbers in programming. In most programming languages, you can assign numeric values (like integers or floats) to variables.

For example, in Python:

age = 25        # Integer
height = 5.9   # Float

Here, age holds an integer value, and height holds a floating-point number. If you have any more questions or need examples in a specific language, let me know!

0 Comments

no data
Be the first to share your comment!