Category: Python
-
Searching Content in File Using Python
Searching Content in File Using Python Searching Content in File Using Python, In this Article , i will show you how to search content using Python by stepping through the Sample code below. In order to do this, we will need to setup two things: The Python Code The JSON File Import the Relevant Library…
-
Program to check the User Enter a String or Numerical Value in Python
Program to check the User Enter a String or Numerical Value in Python, in this Article i will show you , how to check whether the User enter the correct types of input.String or Numerical Checking String Input Since the ” input()” takes in the String Value , i will use a while loop to…
-
With Context Manager in Python
With Context Manager in Python With Context Manager in Python In this Article i will show you how to use the “with” Keyword to create a text file and then write something into the File Sample Code Using the “with ” Keyword “ Open and create a new file called ” Sample.txt” and then assign “w” to…
-
Multiple Iteration in Python
Multiple Iteration in Python Multiple Iteration in Python,in this Article i will show how to iterate 2 set of Python Array. Sample Code First I setup 2 set of Array , ” array a & array b “ Then i use the for loop then i use the zip() function to zip both array together…
-
Datetime in Python
Datetime in Python Datetime in Python, in this article i will explain how to use date and time in Python . Date and time Before using the date and time you will need to import the datetime library. In the sample program below “from datetime import datetime ” shows the command import the date and time…