Word: Condition
Meaning: शर्त
Pronunciation: कंडीशन
Short Description:
English: A condition is an expression used in programming to make decisions. It evaluates to either true or false, helping in executing specific code blocks based on logical statements.
Hindi: प्रोग्रामिंग में, शर्त (कंडीशन) एक अभिव्यक्ति होती है जो निर्णय लेने के लिए उपयोग की जाती है। यह सत्य (true) या असत्य (false) हो सकती है और तार्किक कथनों के आधार पर विशिष्ट कोड ब्लॉक्स को निष्पादित करने में सहायता करती है।
Examples of ‘Condition’ in Sentences:
# | English Sentence | Hindi Translation |
---|---|---|
1 | The if condition checks whether a statement is true. | if शर्त यह जांचती है कि कोई कथन सत्य है या नहीं। |
2 | Conditions help control the flow of a program. | शर्तें किसी प्रोग्राम के प्रवाह को नियंत्रित करने में मदद करती हैं। |
3 | A loop runs until a specified condition is met. | लूप तब तक चलता है जब तक दी गई शर्त पूरी नहीं होती। |
4 | The else block executes when the condition is false. | else ब्लॉक तब निष्पादित होता है जब शर्त असत्य होती है। |
5 | A condition can involve logical operators like && and ` | |
6 | In Python, conditions are used with if-elif-else statements. | पाइथन में, शर्तें if-elif-else कथनों के साथ उपयोग की जाती हैं। |
7 | Switch statements evaluate a condition to determine the output. | स्विच कथन किसी शर्त का मूल्यांकन करके आउटपुट निर्धारित करता है। |
8 | Nested conditions allow multiple levels of decision-making. | नेस्टेड शर्तें बहु-स्तरीय निर्णय लेने की अनुमति देती हैं। |
9 | Conditional expressions simplify decision-making in one line. | सशर्त अभिव्यक्तियाँ एक पंक्ति में निर्णय लेना सरल बनाती हैं। |
10 | Without conditions, programs would not be able to make decisions. | शर्तों के बिना, प्रोग्राम निर्णय लेने में सक्षम नहीं होंगे। |
Short Story Using ‘Condition’
Ravi was coding a simple game where a player wins if they score more than 50 points. He used an if
condition to check the score and display “You Win!” when the condition was met. This helped him understand how conditions control the flow of a program.