Python

How To Write Your First Python 3 Program — step-by-step Python tutorial on Progressive Robot

How To Write Your First Python 3 Program

This tutorial will walk you through writing a “Hello, World” program in Python 3. The “Hello, World!” program is a classic tradition in computer programming. Serving as a simple and complete first program for beginners, as well as a good program to test systems and programming environments, “Hello, World!” illustrates the basic syntax of programming languages.

Read more
NumPy Matrix transpose() - Transpose of an Array in Python — step-by-step Python tutorial on Progressive Robot

NumPy Matrix transpose() – Transpose of an Array in Python

URL: https://www.progressiverobot.com/numpy-matrix-transpose-array/ The transpose of a matrix is obtained by moving the rows data to the column and columns data to the rows. If we have an array of shape (X, Y) then the transpose of the array will have the shape (Y, X). NumPy Matrix transpose() [Python numpy module](/community/tutorials/python-numpy-tutorial) is mostly used to work […]

Read more
Pandas to_csv() - Convert DataFrame to CSV — step-by-step Python tutorial on Progressive Robot

Pandas to_csv() – Convert DataFrame to CSV

URL: https://www.progressiverobot.com/pandas-to-csv-convert-dataframe-to-csv/ Pandas DataFrame to_csv() function converts DataFrame into CSV data. We can pass a file object to write the CSV data into a file. Otherwise, the CSV data is returned in the string format. Pandas DataFrame to_csv() Syntax The syntax of DataFrame to_csv() function is: def to_csv( self, path_or_buf=None, sep=",", na_rep="", float_format=None, columns=None, header=True, […]

Read more
Python decimal - division, round, precision — step-by-step Python tutorial on Progressive Robot

Python decimal – division, round, precision

URL: https://www.progressiverobot.com/python-decimal-division-round-precision/ Python decimal module helps us in division with proper precision and rounding of [numbers](/community/tutorials/python-numbers). Python decimal module !python decimal, python division, python rounding In this lesson on decimal module in Python, we will see how we can manage decimal numbers in our programs for precision and formatting and making calculations as well. The […]

Read more
Python Keywords and Identifiers (Updated) — step-by-step Python tutorial on Progressive Robot

Python Keywords and Identifiers (Updated)

URL: https://www.progressiverobot.com/python-keywords-identifiers/ Let's talk about Python keywords and identifiers. We recently also covered a complete tutorial on installing and setting up Python for beginners in this [Python tutorial](/community/tutorials/python-tutorial-beginners). Python Keywords Well simply, Python keywords are the words that are reserved. That means you can't use them as name of any entities like variables, classes and […]

Read more
How To Use Python Raw String — step-by-step Python tutorial on Progressive Robot

How To Use Python Raw String

URL: https://www.progressiverobot.com/python-raw-string/ Introduction You can create a raw string in Python by prefixing a string literal with r or R. Python raw string treats the backslash character (\) as a literal character. Raw string is useful when a string needs to contain a backslash, such as for a regular expression or Windows directory path, and […]

Read more
Python System Command - os.system(), subprocess.call() — step-by-step Python tutorial on Progressive Robot

Python System Command – os.system(), subprocess.call()

URL: https://www.progressiverobot.com/python-system-command-os-subprocess-call/ In this tutorial we will learn about Python System Command. Previously we learned about [Python Random Number](/community/tutorials/python-random-number). Python System Command While making a program in python, you may need to exeucte some shell commands for your program. For example, if you use Pycharm IDE, you may notice that there is option to share […]

Read more
How to scrape Amazon Product Information using Beautiful Soup — step-by-step Python tutorial on Progressive Robot

How to scrape Amazon Product Information using Beautiful Soup

URL: https://www.progressiverobot.com/scrape-amazon-product-information-beautiful-soup/ Web Scraping is the programming-based technique for extracting relevant information from websites and storing it in the local system for further use. In modern times, web scraping has a lot of applications in the fields of Data Science and Marketing. Web scrapers across the world gather tons of information for either personal or […]

Read more
CHAT