Learning Objectives
Create a function with the required parameters and return value
Use for...
![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 01.12.2021 18:10 lai16kk77
Learning Objectives
Create a function with the required parameters and return value
Use for loop to go over !size! of the substring Use slicing to get the substring Instructions A little bit of looking back to strings:
A substring - any part of a string A prefix - part of the string that starts from the very beginning of the initial string.
Example: string "you are so nice" have prefixes "y", "you", "you ar", "you are so" and that is not all of them! Create a program that would read one string and print all prefixes of that string. Example program input: Nice day! Example program output: N Ni Nic Nice Nice Nice d Nice da Nice day Nice day!
![ansver](/tpl/images/cats/User.png)
Answers: 1
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 00:00
Donna and her team of five have invented a new gadget for the science exhibition in their college. which intellectual property right will protect their invention?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 01:10
Create a program that will take in a single x and y coordinate as the origin. after the input is provided, the output should be all of the coordinates (all 26 coordinates read from the “coordinates.json” file), in order of closest-to-farthest from the origin.
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 13:30
Write a program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year. the program should output the average high, average low, and the highest and lowest temper- atures for the year. your program must consist of the following functions: a. function getdata: this function reads and stores data in the two- dimensional array. b. function averagehigh: this function calculates and returns the average high temperature for the year. c. function averagelow: this function calculates and returns the aver- age low temperature for the year. d. function indexhightemp: this function returns the index of the highest high temperature in the array. e. function indexlowtemp: this function retur
Answers: 3
You know the right answer?
Questions
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 25.08.2019 01:50
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 25.08.2019 01:50
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
English, 25.08.2019 01:50
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 25.08.2019 01:50
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 25.08.2019 01:50
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 25.08.2019 01:50
![question](/tpl/images/cats/mat.png)
Mathematics, 25.08.2019 01:50
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 25.08.2019 01:50
![question](/tpl/images/cats/mat.png)
Mathematics, 25.08.2019 01:50
![question](/tpl/images/cats/himiya.png)
Chemistry, 25.08.2019 01:50