For a task I had to write a programm the programm functions nicely so I dont have a problem there. But I have to use input() and than I have to prove if the type is correct. I only needs integer but the type of input(5) is a str. Althought I need a int. But if use int(input()) thats also dont work because I want that my programm says this is a str or a float and because of this we cant move on. So that the programm now this is a number or not
I did try with only input() that were all Strings regardless of the content and i know why this is so but I dont like it. Then I tried int(input()) but this only works if I use actually only numbers. But I have also to type in strings and floats and then the programm should only say it is the wrong type but shouldnt print out an error message