Posts with the tag « python » :

🔗 Think Python, 3rd edition

-

Think Python is an introduction to Python for people who have never programmed before – or for people who have tried and had a hard time.

The book is now entirely in Jupyter notebooks, so you can read the text, run the code, and work on the exercises, all in one place. Using the links below, you can run the notebooks on Colab, so you don’t have to install anything to get started.

🔗 Mastodon.py

-

Mastodon is an ActivityPub-based Twitter-like federated social network node. It has an API that allows you to interact with its every aspect. This is a simple Python wrapper for that API, provided as a single Python module.

Mastodon.py aims to implement the complete public Mastodon API. As of this time, it is feature complete for Mastodon version 3.5.5. The Mastodon compatible API layers of various other pieces of software as well as forks, while not an official target, should also be basically compatible, and Mastodon.py does make some allowances for behaviour that isn’t strictly like that of Mastodon, and attempts to support extensions to the API.

🔗 CardStock

-

CardStock is a cross-platform tool for quickly and easily building programs. It provides a drawing-program-like editor for visually laying out your programs' parts, and a code editor for adding event-driven python code.

Aims to imitate Hypercard's simplicity.

🔗 microStudio

-

microStudio is an integrated game development environment. It includes all the tools you need to create your first video game! microStudio offers all the following possibilities:

  • a sprite editor
  • a map editor
  • a code editor to program in microScript, Python, JavaScript or Lua
  • import sounds and music
  • export your project to HTML5, Android (APK), Windows, macOS or Linux in a single click.
  • Make changes live to your game, while you are playing it
  • work in teams with instant synchronizations (microStudio online)
  • Explore and pick elements from public projects contributed by the community
  • New: Access accelerated 2D and 3D libs Pixi.js and Babylon.js

microStudio is easy to learn, thanks to its interactive tutorials and documentation.

🔗 How to Install Jupyter Notebook on Ubuntu 20.04 / 18.04

-

How to install Jupyter Notebook on Ubuntu 20.04 to share live code with others. In this guide, we’ll show you how to Install Jupyter Notebook on Ubuntu 20.04 LTS. Here we show you simple ways to install Jupyter on Ubuntu 20.04 LTS (Focal Fossa). You can follow the same instructions for Ubuntu 18.04, 16.04 and any other Debian based distribution like Linux Mint and Elementary OS.

🔗 List Comprehension

-

List comprehensions were added with Python 2.0. Essentially, it is Python's way of implementing a well-known notation for sets as used by mathematicians. In mathematics the square numbers of the natural numbers are, for example, created by { x2 | x ∈ ℕ } or the set of complex integers { (x,y) | x ∈ ℤ ∧ y ∈ ℤ }.

List comprehension is an elegant way to define and create lists in Python. These lists have often the qualities of sets, but are not necessarily sets.

List comprehension is a complete substitute for the lambda function as well as the functions map(), filter() and reduce(). For most people the syntax of list comprehension is easier to be grasped.

See also: [[Lambda, filter, reduce and map]]

🔗 Lambda, filter, reduce and map

-

The lambda operator or lambda function is a way to create small anonymous functions, i.e. functions without a name. These functions are throw-away functions, i.e. they are just needed where they have been created. Lambda functions are mainly used in combination with the functions filter(), map() and reduce(). The lambda feature was added to Python due to the demand from Lisp programmers.

The general syntax of a lambda function is quite simple:

lambda argument_list: expression

See also: [[List Comprehension]]

🔗 Pyxel - a retro game engine for Python.

-

[img[https://raw.githubusercontent.com/kitao/pyxel/master/pyxel/editor/screenshots/image_tilemap_editor.gif]]

Similar to [[PICO-8]] but in python.

Thanks to its simple specifications inspired by retro gaming consoles, such as only 16 colors can be displayed and only 4 sounds can be played back at the same time, you can feel free to enjoy making pixel art style games.

🔗 Ren'Py - a visual novel engine

[img[https://www.renpy.org/static/index-logo.png]]

Ren'Py is a visual novel engine – used by thousands of creators from around the world – that helps you use words, images, and sounds to tell interactive stories that run on computers and mobile devices. These can be both visual novels and life simulation games. The easy to learn script language allows anyone to efficiently write large visual novels, while its Python scripting is enough for complex simulation games.