What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-17 11:32:13
python comments
# this is a comment # Python ignores comments, something = 1 # and you can place them after any line of code """If you don't want to write a comments using hashtags, you can put them in a multi-line comment block. However, if you put hash... Add solution -
Python 2021-11-14 05:39:10
reverse a number in python
# Python string/number reverser example_number = 12143 example_string = "Hello there" def reverse(thing): thing = str(thing) # convert it to a string, just in case it was a number list_of_chars = [char for char in thing] reversed_l... Add solution -
Python 2021-11-03 00:39:17
what is Python's dynamic type system
Python is strongly, dynamically typed. Strong typing means that the type of a value doesn't change in unexpected ways. A string containing only digits doesn't magically become a number, as may happen in Perl. Every change of type requires an explicit con... Add solution