1. Engineering
  2. Computer Science
  3. i need help on 23 and 5 please im having...

Question: i need help on 23 and 5 please im having...

Question details
I need help on 2,3 and 5 please. I’m having a rough time. Thank you in advance.

12] Question two string arguments. It will return two objects: the first one is the concatenated string and the second one is the length li.e, integer this function twice: one call by providing two string objects without name (e.g., Concatenation ( CG , , ,TA) and the other call by providing two string objects with names (e-g, Concatenation (x, Y), where x and y need to be the string objects with proper values that you like). When you make a function call, make sure to design two variable names to label the resultant two objects returned by the function and print their values. (Hint: Inside the function Concatenation, you will need to design two variables: one for the concatenated string and the other one for the length of the concatenated string. Within the function Concatenation, you can use len() function to get a length for a string No.2: In Python interactive mode or PyCharm IDE write a function named Concatenation, which takes object) that represents the length of the concatenated string. After defining this method, you need to call
[B] Question No.3: In Python interactive mode or PyCharm IDE, write a function named check start_coden that wm allow a user to enter a DNA sequence from the keyboard using input ( function. Make sure to give the user a prompt Enter your sequence to know what is going on. Then, it will say Your sequence starts with ATG if the sequence starts with ATG (that is a start codon). Otherwise, it will say Your sequence does not start with ATG. This method do not take any argument or parameter, and it will not return any object out of this function. After defining this function, you need to call it to make sure it works. Show your command to call your function. functiun mernod 14) Question No.4: String class has a method called count (). In Python interactive mode or PyCharm IDE, you can try create list >>> abaca.count (%) > help(str.count) to see what happens and understand what the method can do. Now, design the first string variable strl with AGTGACGC as its value and the second string variable str2 with AATTGGCCC as its value. Then, design the third string variable str3, which should be a concatenation of str1 and str2 using operator +. You need to use three integer variables count1, count2 and count3 to retrieve the counting number of C in strl, str2 and str3 respectively Then, you need to demonstrate that the counting number from the concatenated string is the summation of two original strings. For the comparison, you need to use the logical operator()and get a Boolean variable named compare with the proper value. Your solution will be a series of Python commands in the interactive mode with>»> commando coy past 15] Question No.5: The operator will not work when applied to two strings. Try to evaluate aaa bbb and see what happens. However, it will work when applied to a string and a number (eg. aaa·s). Explain what it does when a string and a number are given. What are the limitations on the number? Will this work with any possible number? Now in Python interactive mode or PyCharm IDE, write a function named string star, which takes two arguments the first one is a string and the second one is an integer. Then, this function will return two objects: one is the string after utilizing the operator with the given number, and the other one is the length of the resultant string. Write proper Python command to call this function with proper named inputs. Make sure to assign two resultant objects to two proper variable names and print them, when you call your function. One string # Awiabl
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution