RESPONSE = raw_input(“QUESTION: ”)print(“JOKE” + RESPONSE)#Save the script to your USB drivepython KnockKnock.py#Ask user for their NAME and AGE. You will need to apply the technique used for the knockknock.pyif AGE > 17: print NAME + “ can see a rated R movie” elif AGE < 17 and AGE > 12: print NAME + “ can see a rated PG-13 movie”else: print NAME + “ can only see rated PG movies”python Movie.pyHint: Prepare the user for how they can respond by providing a clue or options before they input a response. You could also try to add a loop that requires the correct answer to continue the joke.
print("You are Batman's sidekick")RESPONSE = raw_input("Who's there? ")print(RESPONSE + "...Who?")RETORT = raw_input()print("Robin you- hand over the cash!")Credit and appreciation to Blake Allen for base code and idea.
# -*- coding: utf-8 -*-#First line of this program sets the unicode for the shell script Python 2 and 3 have different defaultsFILE = raw_input("What file? (Use complete file path) ")GENE = open(FILE, "r")#Set nucleotide count to 0g=0; a=0; c=0; t=0;#Skip fasta header lineGENE.readline()for LINE in GENE: LINE = LINE.lower() for CHAR in LINE: if CHAR == "g": g+=1 if CHAR == "a": a+=1 if CHAR == "c": c+=1 if CHAR == "t": t+=1print "number of g's " + str(g) print "number of c's " + str(c)print "number of a's " + str(a)print "number of t's " + str(t)#0. = convert to floating pointprint "Sequence length: " + str(a+t+c+g)gc = (g +c+0.)/(a+t+c+g+0.)print "GC content: " + str(gc)You can use Staphylococcus aureus and Thermus aquaticus as examples. What can be inferred about their niche environment based on the difference in GC content of the 16S rRNA gene?
Some reading as background about GC content <here>