Skip to content

Instantly share code, notes, and snippets.

@diaowinner
Created May 31, 2020 16:26
Show Gist options
  • Save diaowinner/068fa45e97cd3533d1a75f8676432617 to your computer and use it in GitHub Desktop.
Save diaowinner/068fa45e97cd3533d1a75f8676432617 to your computer and use it in GitHub Desktop.
Casio file format
def whatfileisit(filename):
if (filename == "g1m")and(filename == "g2m"):
print("Casio fx-7400/9750/9860G series Basic file")
elif filename == "g3m":
print("CASIO fx-CG10/20/50 Basic file")
elif (filename == "g1a")and(filename == "g2a"):
print("Casio fx-7400/9750/9860G series Add-in file")
elif filename == "g3a":
print("CASIO fx-CG10/20/50 Add-in file")
elif filename == "py":
print("CASIO MicroPython Python Project")
elif filename == "g1w":
print("CASIO fx-9860G series SDK project file")
elif filename == "c":
print("CASIO fx-9860G series SDK C file")
elif filename == "h":
print("CASIO fx-9860G series SDK header")
else:
print("File")
#print(whatfileisit(input()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment