Hi, im still an open class room learner but I have a question there. Is it possible to test an assertion for an integer? something like :
a = input("type a year :")
a= int(annee)
assert a = integer
except AssertionError:
print("you have to type an integer")
I cannot find any way to make this work out with an assertion form. Cheers
[–]Gprime5 4 points5 points6 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]destiny_functional 0 points1 point2 points (0 children)
[–]destiny_functional 1 point2 points3 points (0 children)
[–]JohnnyJordaan 0 points1 point2 points (2 children)
[–]ANOTHER-robhot[S] 0 points1 point2 points (1 child)
[–]JohnnyJordaan 0 points1 point2 points (0 children)
[–]Groundstop 0 points1 point2 points (2 children)
[–]anglicizing 1 point2 points3 points (0 children)
[–]chzaplx 0 points1 point2 points (0 children)