Python #7: How to convert user input to uppercase and/or lowercase

#Programmer: Akinwale Owi #Company: Dagba Computers #Program Purpose:Convert user input to uppercase and lowercase #Start of Program #prompting user for input normalInput=input('please enter a string') #printing to test before conversion to uppercase print("User input before change = " +normalInput) #space print("") #converting to upperCase print("All uppercase = " + normalInput.upper()) #space print("") #converting to lowercase... Continue Reading →

Python #5: Basic While Loop

#Programmer: Akinwale Owi #Company: Dagba Computers #Program: Purpose:Basic While Loop #Beginning of Program #While Loop Variable c = 0 #Beginning of While Loop while(c<5): print('Value of C is Currently: ',c) #Adding 1 to C eac iteration so the loop progresses c= c+1 #When loop terminates else: print('Loop Done')

Python #4: How to Implement A Counter

#Programmer: Akinwale Owi #Company: Dagba Computers #Program: Purpose: Basic Counter #Beginning of Program #Counter variable counter = 0 #loopBreak is the variable I will be saving responses in loopBreak = input('Press q to end iteration, or any other letter to keep it going:') #Beginning of loop if(loopBreak == 'q'): print('Wow you pressed q first') #If... Continue Reading →

Python #3:How to Intake & Output Variables in Python

#Programmer: Akinwale Owi #Company: Dagba Computers #Program: Purpose: How to Intake and Output Variables #Beginning of program #Food is our variable to save the response food=input('What is your favorite food?') #Output the answer variable print('My mom used to always cook '+food+' back in the day')

Python #2: Decreasing Loop Progam

#DagbaComputers #Python #Programmer Akinwale Owi # #How to write a decreasing for loop in Python for decreasingCounter in range(10,-1,-1): print(decreasingCounter) #space print('') #Will print when loop is finished print('I put the -1 in so it would stop at 0 instead of 1') #End of program

Blog at WordPress.com.

Up ↑