Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is a project that needed to be done using Python language. Please help me with this one, thank you And here is the sample
This is a project that needed to be done using Python language. Please help me with this one, thank you
And here is the sample run, which is the required result:
1. Let's have the following two strings: 2 marks str1= "abdcentennial" str2= "collegegxyz" Use string indexes (to access the string elements) for the two strings above to get centennial and college, respectively. Then concatenate the two strings and print the final string. 1 mark 2. Ask the student to enter her school and program names. use a string method to change the names into upper case 1 mark 3. Ask the user to test if her first name starts with the letter 'X'. 4. Ask the user to test if her first name ends with the letter 1 mark 'x' 2 marks 5. Use format () function to format the following numbers so they contain two digits after the decimal points: 90.129458 88.0689 You can put the format statement inside print to display the output e.g. print (--put your format here--) 1 mark 6. Use format method with braces to format two variables: subject and grade. You DO NOT have to write a print statement, only the format statement is required (see the lecture note). 7. Using the (*) operator, print your name 3 times. 1 mark 1 mark 8. The output of the program should look similar to the output of a sample run shown below. 10 marks total #Sample run 1. centennial college 2. Enter your school and program names: Centennial Networks CENTENNIAL NETWORKS 3. My name is Karim False My name is Max True 5. 90.13 88.07 6. No output required. 7. Karimkarimkarim
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started