Difference between revisions of "Python quick reference"

From thelinuxwiki
Jump to: navigation, search
(Created page with "==Introduction== ==Lexical analysis== ==Data model== ==Execution model== ==Expressions== ==Simple statements== ===print===")
 
(print)
Line 6: Line 6:
 
==Simple statements==
 
==Simple statements==
 
===print===
 
===print===
 +
 +
print sing variable named foo
 +
print foo
 +
 +
print multiple variables with text
 +
print 'my variable are %s %s' % (FOO, BAR)

Revision as of 20:44, 7 August 2017

Contents

Introduction

Lexical analysis

Data model

Execution model

Expressions

Simple statements

print

print sing variable named foo

print foo

print multiple variables with text

print 'my variable are %s %s' % (FOO, BAR)