Programs for practice
In the program below, we used the arithmetic addition operator (%) to find even or odd number.
Source Code:TAKE IN TWO STRINGS AND DISPLAY THE LARGER STRING WITHOUT USING BUILT-IN FUNCTIONS IN PYTHON
# PROGRAM TO TAKE IN TWO STRINGS AND DISPLAY THE LARGER STRING WITHOUT USING BUILT-IN FUNCTIONS string1=input("Enter first string:") string2=input("Enter second string:") count1=0 count2=0 for i in string1: count1=count1+1 for j in string2: count2=count2+1 if(count1
OutputRun the program to see the output