Programming

Python Program to read five characters which start with ‘a’ and end with ‘z’

  Join for Regular Updates Write a python program to read a string with five characters that start with ‘a’ and end with ‘z’ Problem Definition: Write a program that reads a string with five characters that starts with ‘a’ and ends with ‘z’. Print search successful if pattern match found. Video Tutorial Source Code …

Python Program to read five characters which start with ‘a’ and end with ‘z’ Read More »

Python Program to Count number of words, digits, uppercase, lowercase letters

  Python program to count the number of words, digits, uppercase letters, and lowercase letters Problem Definition: Develop a Python program that accepts a sentence and find the number of words, digits, uppercase letters, and lowercase letters. Video Tutorial Source Code to Python program to count the number of words, digits, uppercase letters, and lowercase …

Python Program to Count number of words, digits, uppercase, lowercase letters Read More »

File Handling in Python

  File Handling in Python Video Tutorial Following are files used for demonstration: file1.txt, file2.txt, and file3.txt File Handling in Python¶ In [ ]: fp = open("file1.txt") for line in fp: #line = line.rstrip() print (line, end = '') In [9]: fp = open("file1.txt") for line in fp: line = line.rstrip() print (line) HIT Nidasoshi Hukkeri VTU Belagavi …

File Handling in Python Read More »