22317/how-to-check-the-version-of-python
you can check the version of python interpreter from the sys.version string in the sys module.
It will provide the information as:
>>> print (sys.version) 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
Yes, it is possible to check the ...READ MORE
Hi, @Roshni, You can use this code below: import ...READ MORE
If you are talking about the length ...READ MORE
following way to find length of string x ...READ MORE
suppose you have a string with 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
my_list = [1,2,3,4,5,6,7] len(my_list) # 7 The same works for ...READ MORE
You can use the reversed 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.