What is the output of the code given above?
Anonymous Quiz
15%
0 1 4
11%
1 9
9%
0 4
12%
1 81
20%
0 81
33%
Error
This media is not supported in your browser
VIEW IN TELEGRAM
Create a platformer game with Python πΎ
πΈArcade is an easy-to-learn Python library for creating 2D video games. It is ideal for beginning programmers, or programmers who want to create 2D games without learning a complex framework.
βοΈInstallation
πIn-depth guide
#arcade #gamedev
πΈArcade is an easy-to-learn Python library for creating 2D video games. It is ideal for beginning programmers, or programmers who want to create 2D games without learning a complex framework.
βοΈInstallation
pip install arcade
πArcade Academy HomepageπIn-depth guide
#arcade #gamedev
Game Development with Pygame πΊ
In this series, you will use
Even though the playlist is a quite old (last updated on Dec 17, 2016), this is the most complete tutorial on the
1. Game Development 1-1: Getting Started with Pygame [YouTube]
2. Game Development 1-2: Working with Sprites [YouTube]
...
58. Tile-based game Part 22: Game Over [YouTube]
πFull YouTube playlist
#materials #pygame #gamedev
In this series, you will use
pygame
to learn the fundamentals of game development by creating 3 types of games: shoot 'em up, platformer and tile-based game.Even though the playlist is a quite old (last updated on Dec 17, 2016), this is the most complete tutorial on the
pygame
library. I've used it to learn Python game development as a part of university research project last year, so I definitely recommend it.1. Game Development 1-1: Getting Started with Pygame [YouTube]
2. Game Development 1-2: Working with Sprites [YouTube]
...
58. Tile-based game Part 22: Game Over [YouTube]
πFull YouTube playlist
#materials #pygame #gamedev
What is the output of the code given above?
Anonymous Quiz
32%
(1, 2, 3, 4, 5, 6)
7%
3
10%
4
28%
6
8%
(1, 2, 3)
16%
Error
Build Your Website Quickly and Easily
πΈFlask is a popular Python web framework, designed to easily build web applications, with the ability to scale up to complex ones.
βοΈInstallation
πDocs
πOfficial tutorial
πGitHub
πCompilation of Flask tutorials
#flask #web
πΈFlask is a popular Python web framework, designed to easily build web applications, with the ability to scale up to complex ones.
βοΈInstallation
pip install Flask
It gives developers flexibility and is a more accessible framework for new developers since you can build a web application quickly using only a single Python file. Flask is also extensible and doesnβt force a particular directory structure or require complicated boilerplate code before getting started.πDocs
πOfficial tutorial
πGitHub
πCompilation of Flask tutorials
#flask #web
Free Python online course by MIT π
If you're looking for great free course to start your Python programming journey, "Introduction to Computer Science and Programming Using Python" by MIT (#2 university in global ranking) is definitely for you.
The goal of this course is to provide students with a brief introduction to many topics so they will have an idea of what is possible when they need to think about how to use computation to accomplish some goal later in their career.
You will learn:
βͺοΈThe Python programming language
βͺοΈSome simple algorithms
βͺοΈTesting and debugging
βͺοΈData structures
πIntroduction to Computer Science and Programming Using Python
πIntro (YouTube video)
#materials
If you're looking for great free course to start your Python programming journey, "Introduction to Computer Science and Programming Using Python" by MIT (#2 university in global ranking) is definitely for you.
The goal of this course is to provide students with a brief introduction to many topics so they will have an idea of what is possible when they need to think about how to use computation to accomplish some goal later in their career.
You will learn:
βͺοΈThe Python programming language
βͺοΈSome simple algorithms
βͺοΈTesting and debugging
βͺοΈData structures
πIntroduction to Computer Science and Programming Using Python
πIntro (YouTube video)
#materials
How to Measure Code Execution Time in Python?
The
To measure the execution time of a statement, simply use the
#tips
The
timeit
module provides a simple way to time small bits of Python code. It has both a Command-Line Interface as well as a callable one. It avoids a number of common traps for measuring execution times.To measure the execution time of a statement, simply use the
timeit.timeit()
function. It accepts the following input parameters:βͺοΈstmt
β String containing the code snippets for your test case.βͺοΈsetup
β Initial code that will be executed once.βͺοΈtimer
β The timer instance. It is defaulted to time.perf_counter(), which returns a float.βͺοΈnumber
β Number of executions to be carried out. The default value is 1,000,000.βͺοΈglobals
β Specifies a namespace in which to execute the code.#tips
What is the output of the code given above?
Anonymous Quiz
12%
[-1, 2, 3, -4, 22]
21%
[-4, -1, 2, 3, 22]
45%
[22, 3, 2, -1, -4]
22%
[22, -4, 3, 2, -1]
70+ Python Project Ideas π‘
β¦οΈAdding a side project or two to your portfolio can be a big plus if you donβt have much working experience yet, helping to convince the employer to hire you.
β¦οΈIn this article you'll find example projects with step-by-step instructions, tutorials and source code that will take you though building real-world Python projects from scratch.
πRead the article
#materials
β¦οΈAdding a side project or two to your portfolio can be a big plus if you donβt have much working experience yet, helping to convince the employer to hire you.
β¦οΈIn this article you'll find example projects with step-by-step instructions, tutorials and source code that will take you though building real-world Python projects from scratch.
πRead the article
#materials
You can share your own project via the feedback bot: @pythontg_feedbackbot. I'll publish the most interesting ones :)
Also don't forget about our chatroom: @pythontg_chat π
Also don't forget about our chatroom: @pythontg_chat π
What is the output of the code given above?
Anonymous Quiz
27%
Error
7%
'' '' '' ''
17%
'JS' 'PHP' 'C' Python'
21%
'' 'PHP' 'CC' 'PythonPythonPython'
28%
'JS' 'PHPPHP' 'CCC' 'PythonPythonPythonPython'
Wikipedia
πΈWikipedia is a Python library that makes it easy to access and parse data from Wikipedia webpages.
βοΈInstallation
πDocs
πGitHub
#wikipedia #parsing
πΈWikipedia is a Python library that makes it easy to access and parse data from Wikipedia webpages.
βοΈInstallation
pip install wikipediaYes, you can now import Wikipedia in Python using Wikipedia module. Use the incessant flow of knowledge with Python for daily needs. Search Wikipedia, get article summaries, get data like links and images from a page, and more.
πDocs
πGitHub
#wikipedia #parsing
Learning to program with Python 3 πΊ
If you want to deal with basics as little as possible and just jump into actual Python projects, you should try to learn Python with Introduction to Python 3 series by sentdex β one of the most popular Python content creator on YouTube. This series is aiming to help you quickly run through the basics and get started with your first Python project.
1. Introduction to Python 3 Programming Tutorial [YouTube]
2. Tuples, Strings, Loops [YouTube]
3. Lists & Tic Tac Toe Game [YouTube]
...
15. Conclusion [YouTube]
πFull playlist
#materials
If you want to deal with basics as little as possible and just jump into actual Python projects, you should try to learn Python with Introduction to Python 3 series by sentdex β one of the most popular Python content creator on YouTube. This series is aiming to help you quickly run through the basics and get started with your first Python project.
1. Introduction to Python 3 Programming Tutorial [YouTube]
2. Tuples, Strings, Loops [YouTube]
3. Lists & Tic Tac Toe Game [YouTube]
...
15. Conclusion [YouTube]
πFull playlist
#materials
In your opinion, what is the best way to learn Python?
Anonymous Poll
39%
Carefully go through the documentation to gain a fundamental understanding of the language
52%
Quickly run through the basics to gain practical experience as fast as possible
9%
None of them (feel free leave a comment below)