220532/what-is-the-data-type-of-1-in-python
a = (1) b = ('y')
The output of type(a) is int, isn't it supposed to be a tuple? Similarly, type(b) is str.
How does this make it an int or str or float etc for the single value inside the round brackets?
Assumming a is a string. The Slice ...READ MORE
I don't get this at all. In ...READ MORE
Polymorphism is the ability to present the ...READ MORE
raw_input fuction is no longer available in ...READ MORE
The seed method is used to initialize the ...READ MORE
You can try the following in a ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
You can simply the built-in function in ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.