Python 3 Programming Tutorial - Functions

Veröffentlicht am: 20 April 2014
auf dem Kanal: sentdex
289,521
2.2k

The idea of a function is to assign a set of code, and possibly variables, known as parameters, to a single bit of text. You can think of it a lot like why you choose to write and save a program, rather than writing out the entire program every time you want to execute it.

To begin a function, the keyword 'def' is used to notify python of the impending function definition, which is what def stands for. From there, you type out the name you want to call your function. It is important to choose a unique name, and also one that wont conflict with any other functions you might be using. For example, you wouldn't want to go calling your function print.

Sample code for this basics series: http://pythonprogramming.net/beginner...

Python 3 Programming tutorial Playlist:    • Why Python 3? Python 2 vs Python 3  


http://seaofbtc.com
http://sentdex.com
http://hkinsley.com
  / sentdex  

Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6


Auf dieser Seite können Sie das Online-Video Python 3 Programming Tutorial - Functions mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer sentdex 20 April 2014 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 289,521 Mal angesehen und es wurde von 2.2 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!