subject

Write a recursive function same_char_same_pos() that takes two strings as parameters. It returns the number of characters which are the same, in the same positions, in both strings. For example, same_char_same_pos("cat","bat") should return 2. For example, same_char_same_pos("cat","acat") should return 0 because, although some of the letters are the same, they are not in the same positions in the two words. Turn this in to the GradeScope assignment "Exam 2 - Same Char Same Pos." Your code should be in a file named exam2_same_char_same_pos. py.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:20
Amedian in the road will be marked with a white sign that has a black arrow going to the left of the median. true false
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Quic which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
Describe three characteristics of at-risk drivers. a. b. c. describe three characteristics of safe drivers. a. b. c. describe three driver errors that could cause a collision. a. b. c. how will this information affect you as a driver now and in the future? (2-3 sentences)
Answers: 2
question
Computers and Technology, 23.06.2019 22:30
Lakendra finished working on her monthly report. in looking it over, she saw that it had large blocks of white space. what steps could lakendra take to reduce the amount of white space?
Answers: 3
You know the right answer?
Write a recursive function same_char_same_pos() that takes two strings as parameters. It returns the...
Questions
question
Health, 18.08.2019 18:30
question
Social Studies, 18.08.2019 18:30
question
Mathematics, 18.08.2019 18:30
Questions on the website: 13722361