tomas1994 Posted January 2, 2020 Share Posted January 2, 2020 Link to comment Share on other sites More sharing options...
lakshitha Posted June 12, 2021 Share Posted June 12, 2021 >>> x = float(2.8) >>> type(x) <class 'float'> >>> x = 2.8 >>> type(x) <class 'float'> Both answers are correct ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now