plz answers these short Qs in python language
Q1-Given the String variable address, write an expression that returns the position of the first occurrence of the String "Avenue" in address.
Q2-Write a sequence of statements that finds the first comma in the string associated with the variable line, and associates the variable clause the portion of line up to, but not including the comma.
Q3-Assume that sentence is a variable that has been associated with a string consisting of words separated by single space characters with a period at the end. For example: "This is a possible value of sentence."
Write the statements needed so that the variable secondWord is associated with the second word of the value of sentence . So, if the value of sentence were "Broccoli is delicious." your code would associate secondWord with the value "is" .
Q4-Write an expression whose value is the result of converting the int value 42 to a str (consisting of the digit 4 followed by the digit 2).
1. address.find("Avenue")
2. line.split(',')[0]
3. secondWord= sentence.split(' ')[1]
4 str(42)
Here is the program
address = "This is a possible Avenue of sentence."
z = address.find( "Avenue" )
print (z)
line = "This, is, a, possible, Avenue, of, sentence."
clause = line.split(',')[0]
print(clause)
sentence = "Broccoli is delicious."
secondWord = sentence.split(' ')[1]
print("secondWord = ", secondWord)
y = str(42)
print (y)
Below is the screenshot of the outputs along with program
plz answers these short Qs in python language Q1-Given the String variable address, write an expression...
Given a String variable address, write a String expression consisting of the string "http://" concatenated with the variable's String value. So, if the variable refers to "www.turingscraft.com", the value of the expression would be "http://www.turingscraft.com". In python please
Could someone please help me write this in Python? If time allows, it you could include comments for your logic that would be of great help. This problem involves writing a program to analyze historical win-loss data for a single season of Division I NCAA women's basketball teams and compute from this the win ratio for each team as well as the conference(s) with the highest average win ratio. Background Whether it's football, basketball, lacrosse, or any other number of...