Input, print, string, int, float: Revision history

From Master of Neuroscience Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

17 October 2025

14 October 2025

  • curprev 15:5915:59, 14 October 2025 Davrot talk contribs 12,707 bytes +12,707 Created page with " == The goal == Questions to [mailto:davrot@uni-bremen.de David Rotermund] == Examples == === Input / Print === <syntaxhighlight lang="python">a = input() # <- test print(a) # -> test</syntaxhighlight> === String to int === <syntaxhighlight lang="python">a = int(5) print(a) # -> 5 print(type(a)) # -> <class 'int'> a = int(-5) print(a) # -> -5 print(type(a)) # -> <class 'int'> a = int("5") print(a) # -> 5 print(type(a)) # -> <class 'int'> a = int("-5") print(a)..." Tag: Visual edit