Skip to content

kolygri/BeautifulPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 

Repository files navigation

BeautifulPython

Just Python code snippets I really enjoyed

In Python, the shortcut row[~i] = row[-i-1] = row[len(row) - 1 - i].

Check for leading zeros in a string representation of a number, len(string) == len(str(int(string))).

Questions:

What are mutable and immutable data types in Python? Python Mutable data types are those whose values can be changed in place whereas Immutable data types are those that can never change their value in place.
Mutable: Lists, Dictionaries, Sets
Immutable: Integers, Floatin-Point numbers, Booleans, Strings, Tuples

https://stackoverflow.com/questions/39980323/are-dictionaries-ordered-in-python-3-6#:~:text=on%20this%20post.-,Are%20dictionaries%20ordered%20in%20Python%203.6%2B%3F,the%20order%20of%20items%20inserted.

About

Just Python code snippets I really enjoyed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors