Python 3 Basics # 2.2.1 | Python octal, hex Characters | Escape Character in Python

Опубликовано: 06 Октябрь 2024
на канале: technologyCult
4,453
79

Python 3 Basics # 2.2.1 | Python octal, hex Characters | Escape Character in Python

Python Escape Characters
1. Octal
a. A backslash followed by three integers will result in a octal value
b. when we execute the string then It converts the octal value to the
corresponding ASCII character.

2. Hex
Hexadecimal (also base 16 or hex) numeral system is a positional numeral system that represents numbers using a radix (base) of 16. Unlike the common way of representing numbers using 10 symbols, hexadecimal uses 16 distinct symbols, most often the symbols "0"–"9" to represent values 0 to 9, and "A"–"F" (or alternatively "a"–"f") to represent values 10 to 15.

Code Starts Here
=================
print('\124')
print('\125')
print('\300')
print('\400')
print('\600')
print('\700')
print('\800')

print("\x48\x65\x6c\x6c\x6f")

All Playlist of this youtube channel
==============================

1. Data Preprocessing in Machine Learning
   • Data Preprocessing in Machine Learnin...  

2. Confusion Matrix in Machine Learning, ML, AI
   • Confusion Matrix in Machine Learning,...  

3. Anaconda, Python Installation, Spyder, Jupyter Notebook, PyCharm, Graphviz
   • Anaconda | Python Installation | Spyd...  

4. Cross Validation, Sampling, train test split in Machine Learning
   • Cross Validation | Sampling | train t...  

5. Drop and Delete Operations in Python Pandas
   • Drop and Delete Operations in Python ...  

6. Matrices and Vectors with python
   • Matrices and Vectors with python  

7. Detect Outliers in Machine Learning
   • Detect Outliers in Machine Learning  

8. TimeSeries preprocessing in Machine Learning
   • TimeSeries preprocessing in Machine L...  

9. Handling Missing Values in Machine Learning
   • Handling Missing Values in Machine Le...  

10. Dummy Encoding Encoding in Machine Learning
   • Label Encoding, One hot Encoding, Dum...  

11. Data Visualisation with Python, Seaborn, Matplotlib
   • Data Visualisation with Python, Matpl...  

12. Feature Scaling in Machine Learning
   • Feature Scaling in Machine Learning  

13. Python 3 basics for Beginner
   • Python | Python 3 Basics | Python for...  

14. Statistics with Python
   • Statistics with Python  

15. Sklearn Scikit Learn Machine Learning
   • Sklearn Scikit Learn Machine Learning  

16. Python Pandas Dataframe Operations
   • Python Pandas Dataframe Operations  

17. Linear Regression, Supervised Machine Learning
   • Linear Regression | Supervised Machin...  

18 Interview Questions on Machine Learning, Artificial Intelligence, Python Pandas and Python Basics
   • Interview Question for Machine Learni...  

19. Jupyter Notebook Operations
   • Jupyter and Spyder Notebook Operation...  

20. Logistic Regresion in Machine Learning, Data Science
   • Logistic Regression | Classification ...  

21. Learn Microsoft Excel Basics
   • Microsoft Excel 2019, 2016, 2013, 201...