Search results
Python is today’s fastest growing programming language. This engaging and refreshingly different guide breaks down the skills into clear step-by-step chunks and explains the the-ory using brief easy-to-understand language.
This document is a selflearning document for a course in Python programming. This course contains (1) a part for beginners, (2) a discussion of several advanced topics that are of interest to Python programmers, and (3) a Python workbook with
- 1MB
- 278
- About this Book
- Strings
- print x
- Methods
- true
- Modules
- 'Tue Sep 11 21:42:06 2012'
This book is prepared from the training notes of Anand Chitipothu. Anand conducts Python training classes on a semi-regular basis in Bangalore, India. Checkout out the upcoming trainings if you are interested.
Strings what you use to represent text. Strings are a sequence of characters, enclosed in single quotes or double quotes. >> x = "hello" >> y = 'world' >> print x, y hello world There is difference between single quotes and double quotes, they can used interchangebly. Multi-line strings can be written using three single quotes or three double quote...
y = '''multi-line strings can be written using three single quote characters as well.
Methods are special kind of functions that work on an object. For example, upper is a method available on string objects. >> x = "hello" >> print x.upper()
> istrcmp('LaTeX', 'Latex') True > istrcmp('a', 'b') False
Modules are libraries in Python. Python ships with many standard library modules. A module can be imported using the import statement. Lets look at time module for example: >> import time >> time.asctime()
The asctime function from the time module returns the current time of the system as a string. The sys module provides access to the list of arguments passed to the program, among the other things. The sys.argv variable contains the list of arguments passed to the program. As a convention, the first element of that list is the name of the program. L...
- 233KB
- 59
WhatPythonistasSayAboutPython Basics: A Practical In- troductiontoPython3 “I love [the book]! The wording is casual, easy to understand, and makestheinformation @owwell. Ineverfeellostinthematerial,
- 1MB
- 98
Mar 3, 2024 · The style of programming in this book is geared towards the kinds of programming things I like to do—short programs, often of a mathematical nature, small utilities to make my life easier, and small
- 1MB
- 263
This page contains examples of basic concepts of Python programming like loops, functions, native datatypes and so on.
People also ask
What is a self learning document for a course in Python?
What does EOL mean in Python?
How to use idle Tual user interactive Python shell?
How to use if-else statement with for loop in Python?
This guide introduces the reader informally about the basic concepts and features in Python language to have a hands-on experience with python by keeping the self-paced learner in thought to get started.