Posts

Showing posts with the label #python

Learn With Kbdk: (Python)Hello World Example

Image
Python is a very simple language, and has a very straightforward syntax. It encourages programmers to program without boilerplate (prepared) code. The simplest directive in Python is the "print" directive - it simply prints out a line (and also includes a newline, unlike in C). There are two major Python versions, Python 2 and Python 3. Python 2 and 3 are quite different. This tutorial uses Python 3, because it more semantically correct and supports newer features. For example, one difference between Python 2 and 3 is the  print  statement. In Python 2, the "print" statement is not a function, and therefore it is invoked without parentheses. However, in Python 3, it is a function, and must be invoked with parentheses. To print a string in Python 3, just write: "  print("This line will be printed.")  " The output will be like  This line will be printed. print    Statement  Examples :  Type this  "...

Learn with kbdk: Some programming-language features of Python

Some programming-language features of Python are: A variety of basic data types are available: numbers (floating point, complex, and unlimited-length long integers), strings (both ASCII and Unicode), lists, and dictionaries. Python supports object-oriented programming with classes and multiple inheritance. Code can be grouped into modules and packages. The language supports raising and catching exceptions, resulting in cleaner error handling. Data types are strongly and dynamically typed. Mixing incompatible types (e.g. attempting to add a string and a number) causes an exception to be raised, so errors are caught sooner. Python contains advanced programming features such as generators and list comprehensions. Python's automatic memory management frees you from having to manually allocate and free memory in your code.

Learn With Kbdk : Some of Python's notable features

Some of Python's notable features: Uses an elegant syntax , making the programs you write easier to read. Is an easy-to-use language that makes it simple to get your program working. This makes Python ideal for prototype development and other ad-hoc programming tasks, without compromising maintainability. Comes with a large standard library that supports many common programming tasks such as connecting to web servers, searching text with regular expressions, reading and modifying files. Python's interactive mode makes it easy to test short snippets of code. There's also a bundled development environment called IDLE. Is easily extended by adding new modules implemented in a compiled language such as C or C++. Can also be embedded into an application to provide a programmable interface. Runs anywhere, including  Mac OS X ,  Windows ,  Linux , and  Unix , with unofficial builds also available for  Android  and iOS. Is free software in two s...

Learn Python with kbdk: Introduction

PYTHON Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum and first released in 1991, Python has a design philosophy that emphasizes code readability, notably using significant whitespace. It provides constructs that enable clear programming on both small and large scales.