Lesson 2 of 34

Variables: ಮೌಲ್ಯಗಳನ್ನು ಸಂಗ್ರಹಿಸುವುದು

7 min 20 XP

variable ಎಂದರೆ ಮೌಲ್ಯವನ್ನು ಇಡುವ ಪೆಟ್ಟಿಗೆಯಂತೆ. = ಬಳಸಿ ಪೆಟ್ಟಿಗೆಯಲ್ಲಿ ಮೌಲ್ಯ ಇಡುತ್ತೇವೆ.

Example: edit me and press Run

Output Loading Python (first time takes a few seconds)
Press Run to see the result here.

variable ನ ಮೌಲ್ಯವನ್ನು ಯಾವಾಗ ಬೇಕಾದರೂ ಬದಲಿಸಬಹುದು. print() ಒಳಗೆ comma (,) ಬಳಸಿದರೆ ಮೌಲ್ಯಗಳ ನಡುವೆ ಸ್ವಯಂಚಾಲಿತವಾಗಿ space ಬರುತ್ತದೆ.

Example: edit me and press Run

Output Loading Python (first time takes a few seconds)
Press Run to see the result here.

variable ಹೆಸರಿನಲ್ಲಿ ಅಕ್ಷರಗಳು, ಅಂಕೆಗಳು ಮತ್ತು _ ಮಾತ್ರ ಇರಬಹುದು. ಹೆಸರು ಅಂಕೆಯಿಂದ ಆರಂಭವಾಗಬಾರದು, space ಇರಬಾರದು. name ಮತ್ತು Name ಬೇರೆ ಬೇರೆ variables.

Challenge

+20 XP

course = "Python" ಮತ್ತು fees = 4000 ಎಂಬ ಎರಡು variables ರಚಿಸಿ, ನಂತರ print ಮಾಡಿ: Course: Python Fees: 4000

Output Loading Python (first time takes a few seconds)
Press Run to see the result here.