Seht selbst:
Code: Alles auswählen
print('Die Eingabe war %s und der Typ ist: %s' %(eingabe, typ))
>>> typ_ausgabe()
Eingabe 4
Die Eingabe war 4 und der Typ ist: <class 'int'>
Eingabe
Ich möchte allerdings den Ausgabetext so formatieren, das <class 'int'> wegfällt und nur noch int dort steht oder halt str, float, boolean etc.