Mai The Dung
Mai The Dung
Resume
999 Python Super Tips (19 → 27)
999 Python Super Tips (19 → 27)

999 Python Super Tips (19 → 27)

Tags
Python
Published
November 13, 2022
Author
Mai The Dung

19. You cannot use an operator at the beginning of the name of a variable

notion image

20. You cannot have 0 as the first digit in a number

notion image

21. You can use the underscore character anywhere in the name of a variable

notion image
I am not encouraging you to use it, but if you see a weird naming of a variable like that, know that it is actually a valid variable name.

22. You can separate big numbers with the underscore

notion image

23. Reverse the ordering of a list

notion image

24. Slice a string using a step function

notion image

25. Reverse slicing

notion image

26. Partial Slicing with just the beginning or ending index

notion image

27. Floor division

notion image
Table of Contents
19. You cannot use an operator at the beginning of the name of a variable20. You cannot have 0 as the first digit in a number21. You can use the underscore character anywhere in the name of a variable22. You can separate big numbers with the underscore23. Reverse the ordering of a list24. Slice a string using a step function25. Reverse slicing26. Partial Slicing with just the beginning or ending index27. Floor division
Copyright 2022 Mai The Dung