Skip to main content

Posts

Showing posts with the label Strongly typed python

Dynamically typed and strongly typed features of python गतिशील रूप से टाइप और दृढ़ता से टाइप की गई भाषा पायथन

Python is both dynamically typed and strongly typed programming language. Here's what each of these terms means:- पायथन गतिशील रूप से टाइप की गई और दृढ़ता से टाइप की गई प्रोग्रामिंग भाषा है। यहां बताया गया है कि इनमें से प्रत्येक शब्द का क्या अर्थ है:-  1. Dynamically Typed:-  In Python, variable types are determined at runtime, not during compilation.It means You don't need to explicitly declare the data type of a variable; it is inferred based on the value assigned to it. For example, you can assign an integer to a variable, and later, without redeclaring, assign a string to the same variable.    x = 5            # x is an integer    x = "hello"   # x is now a string 1. गतिशील रूप से टाइप किया गया:- पायथन में, वेरिएबल प्रकार रनटाइम पर निर्धारित होते हैं, संकलन के दौरान नहीं। इसका मतलब है कि आपको किसी वेरिएबल के डेटा प्रकार को स्पष्ट रूप से घोषित करने की आवश्यकता नहीं है; इसका अनुमान उसे दिए गए मान के आधार पर लगाया ज...