Python: Classes

All types in Python are classes Classes define the structure and behavior of an object Class is determined when an object is created Class is fixed for the lifetime of the object Classes are defined with the “class” keyword followed by a name with...

Python: Objects

Talk = '' def create_greeting(greeting=None): global Talk Talk = greeting + ' fellow blogsters! ' return Talk create_greeting('Hello') Talk += 'How are we doing today?' def create_sign(greeting, decoration = "*"): line = decoration * len(greeting) # len(STRING) gets...

Python: Strings, Bytes, Lists, Dictionaries

Strings and Bytes Single and multi-line string quoting Adjacent string literal concatenation Universal newlines Escapes sequences for control characters Raw strings suppress the escaping mechanism Convert other types using str() Python 3 source encoding is in UTF-8...

Python: Basics

Import Python Standard Library: import MODULE_NAME from MODULE_NAME import FUNCTION_NAME from MODULE_NAME import FUNCTION_NAME as ALIAS_NAME Finding and help: help() or MODULE_NAME.help() or MOUDLE_NAME.help(FUNCTION_NAME) Scalar built-in types int    float    None   ...

Python PYCHARM: Introduction

Hello! This is my first entry python related blog post. This post will serve as a brief tutorial to PYCHARM. What is PYCHARM? PYCHARM is a IDE(Integrated Development Environment) similar Visual Studio. If you search on Google for “Best Pythong IDE”,...