Tag Archives: Python programming

Python Examples for Beginners: Python Code to Print Hello world

Hits: 32 (Python Tutorials for Citizen Data Scientist) Python Code to Print Hello world! A simple program that displays “Hello, World!”. It’s often used to illustrate the syntax of the language. Source Code # This program prints Hello, world! print(‘Hello, world!’) Output Hello, world! In this program, we have used the built-in print() function to print the …

Python tutorials for Business Analyst – Python Errors and Built-in Exceptions

Hits: 56 (Python Tutorial – 030) Python Errors and Built-in Exceptions In this tutorial, you will learn about different types of errors and exceptions that are built-in to Python. They are raised whenever the Python interpreter encounters errors. We can make certain mistakes while writing a program that lead to errors when we try to …

Python tutorials for Business Analyst – Python Directory and Files Management

Hits: 30 (Python Tutorial – 029) Python Directory and Files Management In this tutorial, you’ll learn about file and directory management in Python, i.e. creating a directory, renaming it, listing all directories, and working with them. Python Directory If there are a large number of files to handle in our Python program, we can arrange our code …

Python tutorials for Business Analyst – Python File I/O

Hits: 23 (Python Tutorial – 028) Python File I/O In this tutorial, you’ll learn about Python file operations. More specifically, opening a file, reading from it, writing into it, closing it, and various file methods that you should be aware of. Files Files are named locations on disk to store related information. They are used …

Python tutorials for Business Analyst – Python Dictionary

Hits: 58 (Python Tutorial – 027) Python Dictionary In this tutorial, you’ll learn everything about Python dictionaries; how they are created, accessing, adding, removing elements from them and various built-in methods. Python dictionary is an unordered collection of items. Each item of a dictionary has a key/value pair. Dictionaries are optimized to retrieve values when the key …

Python tutorials for Business Analyst – Python Tuple

Hits: 34 (Python Tutorial – 025) Python Tuple In this article, you’ll learn everything about Python tuples. More specifically, what are tuples, how to create them, when to use them and various methods you should be familiar with.   A tuple in Python is similar to a list. The difference between the two is that we …

Python tutorials for Business Analyst – Python Global Keyword

Hits: 16 (Python Tutorial – 020) Python Global Keyword In this article, you’ll learn about the global keyword, global variable and when to use global keywords. Before reading this article, make sure you have got some basics of Python Global, Local and Nonlocal Variables. What is the global keyword In Python, global keyword allows you to modify the …

Python tutorials for Business Analyst – Python Function Arguments

Hits: 83 (Python Tutorial – 016) Python Function Arguments In Python, you can define a function that takes variable number of arguments. In this article, you will learn to define such functions using default, keyword and arbitrary arguments.   Arguments In the user-defined function topic, we learned about defining a function and calling it. Otherwise, the function …

Python tutorials for Business Analyst – Python Functions

Hits: 62 (Python Tutorial – 015) Python Functions In this article, you’ll learn about functions, what a function is, the syntax, components, and types of functions. Also, you’ll learn to create a function in Python.   What is a function in Python? In Python, a function is a group of related statements that performs a …