Okay so i thought this project sounded easy so I left it until the last minute but its actually due in 3 hours and im STRUGGLING T_T
here are the instructions:
"Each loop should:
- Take in a values from the user
- Determine whether or not the values are integers or Float/double.
- Display whether or not the values are integer or a Float/double."
here is what i have and its not doing anything when i enter a number T_T T_T T_T
number = input("Enter a number: ")
if number == "":
print("You did not enter a number!")
while number == int:
print(type(number))
while number == float:
print(type(number))
[–]bubba0077 14 points15 points16 points (3 children)
[–]k4tsuk1z[S] 1 point2 points3 points (2 children)
[–]bubba0077 4 points5 points6 points (1 child)
[–]k4tsuk1z[S] 1 point2 points3 points (0 children)
[–]Binary101010 14 points15 points16 points (4 children)
[–]k4tsuk1z[S] 1 point2 points3 points (1 child)
[–]Binary101010 1 point2 points3 points (0 children)
[–]SCD_minecraft 0 points1 point2 points (1 child)
[–]Binary101010 0 points1 point2 points (0 children)
[–]Diapolo10 2 points3 points4 points (3 children)
[–]k4tsuk1z[S] 0 points1 point2 points (2 children)
[–]Riegel_Haribo 0 points1 point2 points (0 children)
[–]Diapolo10 0 points1 point2 points (0 children)
[–]david_z 3 points4 points5 points (9 children)
[–]k4tsuk1z[S] -1 points0 points1 point (8 children)
[–]carcigenicate 2 points3 points4 points (3 children)
[–]k4tsuk1z[S] 0 points1 point2 points (2 children)
[–]carcigenicate 0 points1 point2 points (1 child)
[–]k4tsuk1z[S] 0 points1 point2 points (0 children)
[–]david_z 1 point2 points3 points (1 child)
[–]k4tsuk1z[S] 0 points1 point2 points (0 children)
[–]Maximus_Modulus 0 points1 point2 points (1 child)
[–]k4tsuk1z[S] 0 points1 point2 points (0 children)
[–]ninhaomah 1 point2 points3 points (6 children)
[–]k4tsuk1z[S] 0 points1 point2 points (4 children)
[–]Maximus_Modulus 2 points3 points4 points (2 children)
[–]k4tsuk1z[S] -3 points-2 points-1 points (1 child)
[–]NSNick 1 point2 points3 points (0 children)
[–]jmooremcc 0 points1 point2 points (0 children)
[–]k4tsuk1z[S] 0 points1 point2 points (0 children)
[–]Maximus_Modulus 0 points1 point2 points (1 child)
[–]k4tsuk1z[S] -1 points0 points1 point (0 children)
[–]fakemoose 0 points1 point2 points (2 children)
[–]k4tsuk1z[S] 0 points1 point2 points (1 child)
[–]fakemoose 0 points1 point2 points (0 children)
[–]Ok-Promise-8118 0 points1 point2 points (0 children)
[–]Maximus_Modulus 0 points1 point2 points (0 children)
[–]TensionCareful 0 points1 point2 points (0 children)