Python
/
Language
- 1 Language 9
-
Hello World
-
Variables
-
Functions
-
Conditional
-
Operators
-
While
-
Turtle
-
Script Mode
-
Debugging
- 2 Strings 6
-
Slice
-
Raw Strings
-
Regex
-
Validation
-
Config
-
Escape
- 3 Collections 5
-
Lists
-
Dictionaries
-
Efficiency
-
Tuples
-
References
- 4 Functions 5
-
Recursion
-
Factorial
-
Modulus
-
Reassignment
-
Approximate
- 5 Storage 8
-
Files
-
Databases
-
Pipes
-
With open
-
Shelve
-
Zip
-
Csv
-
Json
- 6 Class 4
-
Definition
-
Attributes
-
Functional
-
Methods
- 7 Goodies 5
-
Conditional Expression
-
List Comprehension
-
Generator
-
Named Tuple
-
Modules
- 8 Applications 5
-
Pythagora
-
Palindrome
-
Binary Search
-
Conway Game
-
Coin Flip
- 9 Scheduler 4
-
Time
-
Multithreading
-
Subprocess
-
Logging
- 10 Packages 2
-
Clipboard
-
Ocr
/
Hello World
➟
➟
Last update: 13-05-2022
Cli
p23 Print Hello World from command line.
$ python
>>> print('Hello World!')
# Hello World!
File
Print Hello World from script (a file with .py extension).
# hello.py
print('Hello World')
# python hello.py
# Hello World
Mistakes
p31 When learning new features try to make mistakes on purpose (helps to remember).
print('Hello World') # correct
# Hello World
# print 'Hello World' # incorrect
# SyntaxError: Missing parentheses in call to 'print'
➥ Questions github Language