This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#counterdowns by Terry Stickney for use by all especially pythoneers. | |
#dictionary may be old. Beware. | |
import random | |
def check(fname, txt): | |
with open(fname) as dataf: | |
return any(txt in line for line in dataf) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
print ("Rosie's Theory Testing page") | |
print("---------------------------") | |
questions=["accelerando","adagio","allegretto","allegro","andante","cantabile","crescendo","da capo","dal segno","decrescendo","diminuendo","fine","fort","fortissimo","legato","lento","mezzo","messo forte","messa piano","moderato","piano","pianissimo","poco","rallentando","ritardando","ritenuto","staccato","tempo"] | |
answers=["gradually getting quicker","slow","fairly quick","quick","at a medium","in a singing style","gradually getting louder","repeat from the beginning","repeat from the sign","gradually getting quieter","gradually getting quieter","the end","loud","very loud","smoothly","slow","half","moderately loud","moderately quiet","moderately","quiet","very quiet","a little","gradually getting slower","gradually getting slower","held back","detached","speed"] | |
youranswer='yes' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?PHP | |
if (isset($_REQUEST['message'])){ | |
$trans=''; | |
if ($_REQUEST['code']=='code'){ | |
for ($a=0;$a<strlen($_REQUEST['message']);$a++){ | |
$thisord=ord($_REQUEST['message'][$a]." "); | |
$thisord=$thisord-5; | |
$trans.=chr($thisord); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Python Coder Decoder Basic Skills using Python and understanding ASCII coding. Fully working. | |
#If you are using Python 3, please put brackets around the print statements, e.g. print ("----------------") AND change raw_input to just input | |
phrase='x' # make sure this has something inside it to keep the loop running | |
cchange=5 #this is the number relating to the ascii code. | |
while phrase != '':#start the loop. Enter blank to quit loop |