background preloader

The “Invent with Python” Blog

The “Invent with Python” Blog
I've written an article for OpenSource.com called APIs, not apps: What the future will be like when everyone can code, where I write about a coming future where programming ability is in the hands of everyone. Excerpt: Despite this hype, I do think that coding will become a more widespread and routine skill in the years to come. Related:  Python

Sortie d'un cahier d'activités Python pour coder un jeu vidéo Les éditions Eyrolles viennent de sortir un cahier d’activités à destinations des enfants et ados pour se familiariser avec le langage informatique Python. Non, rassure-toi, un gros serpent ne se cache pas dans ce livre. Le Python est aussi un langage de programmation très utilisé à travers le monde et ce cahier d’activité « Python pour les kids » va te permettre d’apprendre à coder ton propre jeu vidéo en utilisant ce langage ! Pour commencer, il n’est pas nécessaire que tu aies une quelconque connaissance en programmation. Le cahier est constitué de six chapitres à la difficulté croissante et qui sont accompagnés d’un site internet sur Kidscod.in ( Le développement du jeu va reposer sur le principe de la programmation graphique, à la manière de Scratch. Le cahier d’activité « Python pour les kids » est vraiment didactique et simple à prendre en main. Cahier d’activités Python

Game Programming at scriptedfun Welcome! scriptedfun is a game programming site, offering game programming video tutorials and game source code. Instead of approaching game programming by working with isolated code snippets (for instance, moving an image, etc.), we will approach game programming through building actual games. The games will be simple, but will hopefully serve as good starting points for your own games. There are 4 video tutorials available so far, with more on the way: Video transcripts are also available for those who prefer to read. The video tutorials will guide the viewer through the game programming process, using working game prototypes. Arinoid – an Arkanoid clone1945 – a vertical scrolling shooter, 1942 clone The games on this site are built using the Python programming language. This site also features articles which I hope will be useful to the beginning game programmer. This work is published under a Creative Commons Attribution 2.5 License. I would love to hear from you!

Getting Started with Plotly for Python Plotly for Python can be configured to render locally inside Jupyter (IPython) notebooks, locally inside your web browser, or remotely in your online Plotly account. Remote hosting on Plotly is free for public use. For private use, view our paid plans. Offline Use Standalone HTML Offline mode will save an HTML file locally and open it inside your web browser. Learn more by calling help: import plotly help(plotly.offline.plot) Copy to clipboard! Inside Jupyter/IPython Notebooks Learn more about offline mode Hosting on Plotly Plotly provides a web-service for hosting graphs. In the terminal, copy and paste the following to install the Plotly library and set your user credentials. $ pip install plotly $ python -c "import plotly; plotly.tools.set_credentials_file(username='DemoAccount', api_key='lr1c37zw81')"Copy to clipboard! You'll need to replace 'DemoAccount' and 'lr1c37zw81' with your Plotly username and API key. Find my API key. To host your graph in your plotly account: In your Terminal, enter:

Welcome to Python.org sjbrown's Guide To Writing Games By Shandy Brown. Please send comments / corrections via email to tutorial@ezide.com Last Update: March 2011 Table Of Contents This guide assumes a certain level of knowledge. Object Oriented Programming It is expected the reader is comfortable in an object oriented environment. Design Patterns Design Patterns are a communication tool; they do not dictate design, they inform the reading of the code. We will start by trying to create a program where a little man moves around a grid of nine squares. Model View Controller The choice of MVC should be pretty obvious where a graphical game is concerned. We haven't even got to the Model yet, and already we have a difficulty. In this example, the Controller (the "Handle Input Events" part) and the View (the "Draw Everything" part) are tightly coupled, and this is generally how PyGame games work, at every iteration of the main loop, it is expected that we will check for input events, update all the visible sprites, and redraw the screen. Rationale Game

Python Programming in your Browser: PythonAnywhere Apprenez à programmer en Python Vous n'y connaissez rien en programmation et vous souhaitez apprendre un langage clair et intuitif ? Ce cours d’initiation à Python est fait pour vous ! Et comme le veut la coutume ici-bas, on démarre de zéro, dans la joie et la bonne humeur. Ainsi, si vous n'avez jamais programmé en quelque langage que ce soit, si vous ne savez que très vaguement ce que programmer signifie, vous ferez le bon choix en choisissant Python pour commencer votre apprentissage. Les avantages de Python sont nombreux, c’est un langage : facile à apprendre, à lire, à comprendre et à écrire ;portable (fonctionne sous de nombreux systèmes d'exploitation) ;doté d’une communauté active ;et j'en passe… Bonne lecture ! NB : Un grand merci à 6pri1 pour sa relecture attentive et sa patience.

The Python Game Book [The Python Game Book]

Related: