Python mein valid variable name kaun sa hai?
Correct answer: _age
Variable name letter ya underscore se start hota hai. Space aur keyword allowed nahi.
Chapter 2 - Class 11 Computer
Chapter 2 Python notes ko document-style layout me organize kiya gaya hai taake student notes, solved structure aur important questions ko aik hi printable page par dekh sake.
Printable Notes
Yeh page Python Basics chapter ko document format me organize karta hai. Is me notes, solved exercises aur important questions aik printable flow me diye gaye hain taake student bina extra clicks ke revise kar sake.
Python chapter programming ki basic language concepts introduce karta hai. Is me variables, input-output, operators, conditions, loops aur functions se coding ka foundation build hota hai.
Yeh notes concept flow ke mutabiq arranged hain. Agar student sequence follow kare to chapter ratne ke bajaye samajh kar revise kar sakta hai.
Python me variable aik named storage hota hai jahan value temporarily rakhi jati hai. Yeh programming ka base concept hai kyun ke baqi calculations aur logic isi stored data par kaam karte hain.
input() user se value leta hai aur print() result dikhata hai. Dono mil kar program ko interactive banate hain aur basic programs me sab se zyada use hote hain.
If-else conditions ke zariye decision leta hai, jab ke loops repeated tasks automate karte hain. Yeh dono concepts paper me practical coding logic samjhane ke liye important hote hain.
Function reusable code block hota hai. Is se same logic dobara likhne ki zarurat kam hoti hai aur code ko organize karna easy ho jata hai.
Known range ya iterable par run hoti hai. Jab repeat count clear ho to for loop zyada readable hoti hai.
Condition ke true rehne tak chalti hai. Agar update miss ho jaye to infinite loop ban sakta hai, is liye logic clear hona chahiye.
Python solved section ka focus answer structure aur concept linkage par hai. Is se descriptive aur objective dono prep ko support milta hai.
Python mein valid variable name kaun sa hai?
Correct answer: _age
Variable name letter ya underscore se start hota hai. Space aur keyword allowed nahi.
x = 5 ka matlab kya hai?
Correct answer: x mein 5 store karo
Assignment operator `=` variable mein value store karta hai.
Python me variable name kis cheez se start nahi ho sakta?
Correct answer: Digit
Python me variable name digit se start nahi ho sakta. Letter ya underscore se start kiya ja sakta hai.
Konsa data type decimal value ko represent karta hai?
Correct answer: float
Decimal ya fractional value ke liye float use hota hai.
Python chapter variables se start hota hai, phir input-output, operators, conditions, loops aur functions ki taraf move karta hai. Yeh sequence is liye important hai kyun ke har naya topic pichlay concept par build hota hai.
For loop tab use hota hai jab repeat count ya iterable clear ho. While loop tab useful hota hai jab condition ke true rehne tak process repeat karna ho. Dono repetition karte hain lekin control style alag hoti hai.
Important questions chapter ke high-frequency topics ko cover karte hain. In ko practice karne se short-answer grip strong hoti hai.
Variable naam hota hai aur value wo actual data hota hai jo us naam ke andar store kiya jata hai.
Loop repetition ka concept clear karta hai. Board questions me for loop aur while loop ka basic difference aksar poocha jata hai.
Return function ke result ko wapas bhejta hai taake us output ko program ke doosre part me use kiya ja sake.
Software Development Life Cycle chapter ke printable notes aur solved revision blocks.
Algorithms and Problem Solving chapter ke printable notes aur solved revision blocks.
Chapter-wise notes index jahan se puri book ka printable study flow khulta hai.