modul:archiv:m319python:learningunits:lu02:loesungen:differentinputs

Lösung LU02.A02

def main():
    # write your code below this line
    inString = input('Give a string:\n')
    inInteger = int(input('Give an integer:\n'))
    inFloat = float(input('Give a float:\n'))
    print('You gave the string ' + inString)
    print('You gave the integer ' + str(inInteger))
    print('You gave the float ' + str(inFloat))
 
if __name__ == '__main__':
    main()
  • modul/archiv/m319python/learningunits/lu02/loesungen/differentinputs.txt
  • Zuletzt geändert: 2024/03/28 14:07
  • von 127.0.0.1