Aktionen

Python-intro-brainstorming: Unterschied zwischen den Versionen

Aus exmediawiki

(Die Seite wurde neu angelegt: „=erste Schritte mit Python= Python Code Onlione ausführen (ohne lokales Installieren eines Pythoninterpreters): * Online Python-Idle: https://trinket.io/pytho…“)
 
 
(5 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
=erste Schritte mit Python=
+
=Linksammlungen=
Python Code Onlione ausführen (ohne lokales Installieren eines Pythoninterpreters):
+
* online idle: https://trinket.io/python
* Online Python-Idle: https://trinket.io/python
+
* https://www.w3schools.com/python/python_conditions.asp
 +
* https://matplotlib.org/gallery/index.html
 +
 
 +
* https://pythonbuch.com/
 +
* https://wiki.zum.de/wiki/Python
 +
* https://wiki.python.org/moin/PythonForArtificialIntelligence
 +
* Python Kurs in Deutsch (Buch hierfür liegt im exMediaLab): https://www.python-kurs.eu/python3_kurs.php
 +
* Python Wiki: https://wiki.python.org/moin/GermanLanguage
 +
* Learn Python the Hard Way: https://www.souravsengupta.com/cds2015/python/LPTHW.pdf
 +
 
 +
----
 +
 
 +
==Python Tutorials==
 +
* schöne notebooks der uni heidelberg, die ich auch für das seminar in teilen benutzt habe: https://mybinder.org/v2/gh/nilsleiffischer/python-course/deploy?filepath=index.ipynb
 +
 
 +
* https://en.wikibooks.org/wiki/A_Beginner%27s_Python_Tutorial
 +
* https://www.mathematik.hu-berlin.de/~ccafm/teachingBasic/allg/Python_beginners.shtml
 +
* https://learnxinyminutes.com/docs/de-de/python-de/
 +
* https://github.com/rajathkmp/Python-Lectures
 +
* https://nbviewer.jupyter.org/github/rajathkumarmp/Python-Lectures/tree/master/
 +
 
 +
'''Onlinetutorial:'''
 +
*[https://tutorial.djangogirls.org/de/python_introduction/ Python tutorial der djangogirls (Deutsch)]
 +
 
 +
'''Book:'''
 +
*[https://exmediawiki.khm.de/exmediawiki/images/6/6d/Py-tutorial-de.pdf Das Python3.3-Tutorial (Deutsch)]
 +
 
 +
'''Videotutorial:'''
 +
*[https://www.youtube.com/playlist?list=PLbd_WhypdBbAMyFfKgSj27JO7CEpuIcEK Videotutorial von »Coding is for girls« (Englisch)]
 +
*[https://www.udemy.com/course/python-bootcamp/ Python Bootcamp: Vom Anfänger zum Profi, inkl. Data Science], UDEMY-Kurs (30h), es gibt oft Aktionsangebote für um die 10€
 +
*[https://www.linkedin.com/learning/paths/python-entwickler-in-werden?u=79791458  Python-Entwickler:in werden], LinkedIn-Learning (insg. 25h), Zugang über [https://www.khm.de/bib_digitale_bibliothek/ Online-Angebote der KHM-Bibliothek]
 +
 
 +
'''Hands-on Tutorial:'''
 +
*[https://hourofpython.trinket.io/a-visual-introduction-to-python#/welcome/an-hour-of-code an hour of Code - A Visual Introduction to Python]
 +
 
 +
----
 +
 
 +
[[Datei:Python logo and wordmark.svg]]
 +
 
 +
----
 +
 
 +
==Code Poetry (with Python)==
 +
* https://blog.trinket.io/writing-poetry-in-python/
 +
* http://www.pythoncode.co.uk/poem-overview
 +
* http://code.activestate.com/recipes/576413-the-poem-in-python/
 +
** http://code.activestate.com/recipes/577641-my-first-poem-written-in-python/
 +
** http://code.activestate.com/recipes/496781-romantic-love-poem-in-python/
 +
 
 +
 
 +
=erste Schritte mit Python...=
 +
 
 
=== Variablen setzen ===
 
=== Variablen setzen ===
  
Zeile 45: Zeile 95:
  
 
----
 
----
==Python Tutorials==
 
 
'''Onlinetutorial:'''
 
*[https://tutorial.djangogirls.org/de/python_introduction/ Python tutorial der djangogirls (Deutsch)]
 
 
'''Book:'''
 
*[https://exmediawiki.khm.de/exmediawiki/images/6/6d/Py-tutorial-de.pdf Das Python3.3-Tutorial (Deutsch)]
 
 
'''Videotutorial:'''
 
*[https://www.youtube.com/playlist?list=PLbd_WhypdBbAMyFfKgSj27JO7CEpuIcEK Videotutorial von »Coding is for girls« (Englisch)]
 
 
'''Hands-on Tutroial:'''
 
*[https://hourofpython.trinket.io/a-visual-introduction-to-python#/welcome/an-hour-of-code an hour of Code - A Visual Introduction to Python]
 
 
----
 
 
[[Datei:Python logo and wordmark.svg]]
 
==Python==
 
* https://pythonbuch.com/
 
* https://wiki.zum.de/wiki/Python
 
* https://wiki.python.org/moin/PythonForArtificialIntelligence
 
* Python Kurs in Deutsch (Buch hierfür liegt im exMediaLab): https://www.python-kurs.eu/python3_kurs.php
 
* Python Wiki: https://wiki.python.org/moin/GermanLanguage
 
* Learn Python the Hard Way: https://www.souravsengupta.com/cds2015/python/LPTHW.pdf
 
===Code Poetry (with Python)===
 
* https://blog.trinket.io/writing-poetry-in-python/
 
* http://www.pythoncode.co.uk/poem-overview
 
* http://code.activestate.com/recipes/576413-the-poem-in-python/
 
** http://code.activestate.com/recipes/577641-my-first-poem-written-in-python/
 
** http://code.activestate.com/recipes/496781-romantic-love-poem-in-python/
 
  
 
====Python Poetry Example====
 
====Python Poetry Example====

Aktuelle Version vom 28. Oktober 2020, 18:20 Uhr

Linksammlungen


Python Tutorials

Onlinetutorial:

Book:

Videotutorial:

Hands-on Tutorial:


Python logo and wordmark.svg


Code Poetry (with Python)


erste Schritte mit Python...

Variablen setzen

EKI = "Entwickler Künstlicher Intelligenz aus Indien"
HGA = "Höchstens geduldeter Ausländer"
EKI = 1
HGA = 0
Summe = EKI + HGA

Ausgaben mit print()

print(sum)
print("Hallo Welt")

Eingaben mit input()

Text:

input("is EKI in the house? type true for 1 or false for 0:")

Ganzzahl:

int(input("is EKI in the house? type 1 for true or 0 for false:"))

Fließkommazahl:

float(input("is EKI in the house? type 1.0 for true or 0.0 for false:"))

Kontrollstrukturen

if_Anweisung:

if EKI > 1:
     print("true")
else:
     print("false")

siehe auch: Übersicht von Vergleichsoperatoren

Kommentare

Einzeiliges Kommentar

# mit dem Hashtag zu Beginn einer Zeile wird auskommentiert

mehrzeilige Kommentare:

"""In 3 Anführungszeichen
können mehrzeilige Kommentare (__doc__strings)
verfasst werden"""

Python Poetry Example

#that poem do nothing, but can be compile! =D
##http://code.activestate.com/recipes/576413-the-poem-in-python/

#!/usr/bin/env python
#
########   The Poem   #########
###############################
#             by              #
# Marcello Bontempo Salgueiro #
#  08/08/08 - 04:16 AM        #
###############################
def ining(the_poem):
	the_poem='is love'
	the_poem is True
	but , have, some = 'sadness', 'passion', 'love'
	the_poem and 'love' is True
	class Ify:
		is_=('the', 'only', 'way','to')
		try:
			felling='real love'
		except:
			you={'are':'a frozen'}
	the_poem; return '%s'%'ome explanation'
	everything=['is like','a poem']
	for felling_it_go in the_poem:
		writing, your= 'felling','your thoughts';  your_love and fly
	return str('ing of happiness')
belive, this = 'is', 'True' 

nothing='is';w=ining('!')
just='love.'

https://exmediawiki.khm.de/exmediawiki/index.php/Regex


https://exmediawiki.khm.de/exmediawiki/index.php/Vergleichsoperatoren