Skip to content

Commit b3b0a50

Browse files
committed
Python Programs
1 parent f8bbd0b commit b3b0a50

File tree

10 files changed

+11
-1
lines changed

10 files changed

+11
-1
lines changed

Programs/P11_BinaryToDecimal.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#Author: OMKAR PATHAK
12
#This program converts the given binary number to its decimal equivalent
23

34
def binaryToDecimal(binary):

Programs/P12_DecimalToBinary.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#Author: OMKAR PATHAK
12
#Program to convert decimal to its equivalent binary
23

34
def decimalToBinary(n):

Programs/P13_Palindrome.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#Author: OMKAR PATHAK
12
#This program checks for the palindrome
23

34
def palindrome(string):

Programs/P14_CheckGreater.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#Author: OMKAR PATHAK
12
#This prpgram checks that the given number is greater than all those numbers in th list
23

34
def checkGreater(number):

Programs/P15_Arguments.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#Author: OMKAR PATHAK
12
#This program gives a demo of how can you pass arguments while running python programs
23
#Run the program as: python P15_Arguments.py Omkar Pathak
34

Programs/P16_CountVowels.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#Author: OMKAR PATHAK
12
#This program counts the vowels present in the user input
23

34
def countVowels(sentence):

Programs/P17_EvenOdd.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#This program takes input from user and sorts the numbers in two arrays, one of even and other of odd
1+
#Author: OMKAR PATHAK
2+
#This program takes input from user and sorts the numbers in two arrays, one of even and other of odd
23

34
def evenOdd(numbers):
45
'''This function divides the numbers in two arrays one of even and other of odd'''

Programs/P18_Logging.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#Author: OMKAR PATHAK
12
#This program illustrates a logging example
23
import logging
34

Programs/P19_SimpleStopWatch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#Author: OMKAR PATHAK
12
#This program illustrates a stopwatch
23

34
import time

Programs/P20_OsModule.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#Author: OMKAR PATHAK
12
#This program illustrates the example for os module in short
23

34
import os

0 commit comments

Comments
 (0)