Advertisement
andretafta

Sertifikat

Jan 27th, 2023
963
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 7.86 KB | Source Code | 0 0
  1. def firstLine(name, quarter, grade):
  2.     if grade != "spec":
  3.       temp = {1:"first", 2:"second", 3:"third", 4:"fourth", 5:"fifth", 6:"sixth", 7:"seventh", 8:"eighth", 9:"ninth"}
  4.       sentence = "Congratulations on completing the "+temp[quarter]+" Milestone test, "+name+"!"
  5.     else:
  6.       temp = {
  7.         1:"Game Development",
  8.         2:"Python and Data Science",
  9.         3:"Web Development",
  10.         4:"Algorithm and Data Structure",
  11.         5:"Artificial Intelligence and Machine Learning",
  12.         6:"Kotlin and Android Studio",
  13.         7:"Databases and SQL"
  14.       }
  15.       sentence = "Congratulations on completing the " +temp[quarter]+ " specialization course Milestone test, "+name+"!"
  16.     return sentence
  17.  
  18. def secondLine(name, grade, q):
  19.     current = grade+"_"+str(q)
  20.    
  21.     #topics for grade SD1
  22.     if current == "sd1_1":
  23.         topic = "learned about the basics of programming"
  24.         platforms = "Kodable and Tynker"
  25.     elif current == "sd1_2":
  26.         topic = "explored more about coding"
  27.         platforms = "Code.org and CodeMonkey"
  28.     elif current == "sd1_3":
  29.         topic = "learned about the basics of Storytelling"
  30.         platforms = "Scratch and Google CS First"
  31.     elif current == "sd1_4":
  32.         topic = "is introduced to the basics of game design"
  33.         platforms = "Kodu Game Lab and Tynker"
  34.     elif current == "sd1_5":
  35.         topic = "learned about Digital Art and Music with programming"
  36.         platforms = "Kano Art and Tynker"
  37.     elif current == "sd1_6":
  38.         topic = "learned about STEM in coding"
  39.         platforms = "Tynker and Roboblockly"
  40.     elif current == "sd1_7":
  41.         topic = "is introduced to the basics of Minecraft Modding and Roblox Game Development"
  42.         platforms = "Tynker and Code Kingdoms"
  43.     elif current == "sd1_8":
  44.         topic = "learned about the concepts of advanced animations and AI"
  45.         platforms = "Tynker and Code.org"
  46.    
  47.     #topics for grade SD2
  48.     elif current == "sd2_1":
  49.         topic = "learned about the basics of programming"
  50.         platforms = "Tynker and Scratch"
  51.     elif current == "sd2_2":
  52.         topic = "learned about Digital Art with programming"
  53.         platforms = "Scratch and CodeMonkey"
  54.     elif current == "sd2_3":
  55.         topic = "is introduced to the basics of Game Design"
  56.         platforms = "Tynker and Google CS First"
  57.     elif current == "sd2_4":
  58.         topic = "learned about Maths and Physics in programming"
  59.         platforms = "Tynker and Roboblockly"
  60.     elif current == "sd2_5":
  61.         topic = "learned about Mobile App Development and Coding in Music"
  62.         platforms = "MIT App Inventor and Sonic Pi"
  63.     elif current == "sd2_6":
  64.         topic = "learned about advanced concepts of Game Design"
  65.         platforms = "Gamefroot and CodeMonkey"
  66.     elif current == "sd2_8":
  67.         topic = "is introduced to the basics of Minecraft Modding, Roblox Game Development, and AI"
  68.         platforms = "Code.org and CodeKingdoms"
  69.     elif current == "sd2_9":
  70.         topic = "learned about the basics of Python"
  71.         platforms = "Grok Learning and Codesters"
  72.    
  73.     #topics for grade SMP
  74.     elif current == "smp_1":
  75.         topic = "learned about the basics of programming"
  76.         platforms = "Scratch and Codemonkey"
  77.     elif current == "smp_2":
  78.         topic = "is introduced to the concepts of Game Design"
  79.         platforms = "Scratch and Code Combat"
  80.     elif current == "smp_5":
  81.         topic = "is introduced to the basics of Python and Javascript"
  82.         platforms = "Tynker and Grok Learning"
  83.     elif current == "smp_6":
  84.         topic = "learned about Coding in Maths and AI"
  85.         platforms = "Grok Learning and Roboblockly"
  86.     elif current == "smp_7":
  87.         topic = "learned about Data structure and Databases"
  88.         platforms = "Code.org and Datacamp"
  89.     elif current == "smp_8":
  90.         topic = "learned about Computer Science and Algorithms"
  91.         platforms = "Khan Academy and FutureLearn"
  92.    
  93.     #topics for grade SMA
  94.     elif current == "sma_1":
  95.         topic = "explored more various branches of programming such as Game, Web, and App Development"
  96.         platforms = "Code.org and Scratch"
  97.     elif current == "sma_3":
  98.         topic = "is introduced to Game Development"
  99.         platforms = "Code Combat and Construct 3"
  100.     elif current == "sma_5":
  101.         topic = "learned about the basics of Python"
  102.         platforms = "Raspberry Pi and Grok Learning"
  103.     elif current == "sma_6":
  104.         topic = "learned about Data, Databases, and AI"
  105.         platforms = "MachineLearningForKids and Grok Learning"
  106.    
  107.     #topics for materials that is mostly a single platform / need special wording
  108.     if current == "sd2_7":
  109.         sentence = "In this quarter, "+name+" learned about Web Development using various languages, such as HTML, CSS, and Javascript."
  110.     elif current == "smp_3":
  111.         sentence = "In this quarter, "+name+" learned about Mobile App Development on the MIT App Inventor platform."
  112.     elif current == "smp_4":
  113.         sentence = "In this quarter, "+name+" learned about Web Development using various languages, such as HTML, CSS, and Javascript."
  114.     elif current == "sma_2":
  115.         sentence = "In this quarter, "+name+" learned about Web Development using various languages, such as HTML, CSS, and Javascript."
  116.     elif current == "sma_4":
  117.         sentence = "In this quarter, "+name+" learned about Mobile App Development on the MIT App Inventor platform."
  118.    
  119.     #topic for SMA specialization
  120.     elif current == "spec_1":
  121.         sentence = "In this quarter, "+name+" learned about advanced Game Development on Unity, where he learned about Unity and C# programming language."
  122.     elif current == "spec_2":
  123.         sentence = "In this quarter, "+name+" learned about the theories of Data Science and advanced Python on the Datacamp platform."
  124.     elif current == "spec_3":
  125.         sentence = "In this quarter, "+name+" learned about advanced Web Development, including the front and back-end side of it, using various languages such as HTML, CSS, SQL, PHP, and Javascript."
  126.     elif current == "spec_4":
  127.         sentence = "In this quarter, "+name+" learned about Algorithms and Data Structure in Computer Science on various platforms, such as Sololearn and FutureLearn."  
  128.     elif current == "spec_5":
  129.         sentence = "In this quarter, "+name+" learned about Artificial Intelligence and Machine Learning on various platforms, such as MIT App Inventor and CuriosityMachine."
  130.     elif current == "spec_6":
  131.         sentence = "In this quarter, "+name+" learned about advanced Mobile App Development, using Kotlin programming language with Android Studio."
  132.     elif current == "spec_7":
  133.         sentence = "In this quarter, "+name+" learned about advanced SQL and Databases theories on various platforms, such as FutureLearn and Progate."  
  134.    
  135.     #sentence building based on the topics except for the ones with special wording
  136.     else:
  137.         sentence = "In this quarter, "+name+" "+topic+" on various platforms, such as "+platforms+"."
  138.     return sentence
  139.    
  140. nickname = input("Enter student nickname: ")
  141. while nickname:
  142.     t_name = nickname[0].upper() + nickname[1:]
  143.     grade = input("Enter student grade: (sd1/sd2/smp/sma/spec) ")
  144.     grade = grade.lower()
  145.     if grade == "spec":
  146.       print("Enter the following numbers for the SMA specialization topic: ")
  147.       print("1. Game Development")
  148.       print("2. Python Data Science")
  149.       print("3. Web Development")
  150.       print("4. Algorithm and Data Structure")
  151.       print("5. Artifical Intelligence and Machine Learning (AI & ML)")
  152.       print("6. Kotlin and Android Studio")
  153.       print("7. Databases and SQL")
  154.     quarter = int(input("Enter student quarter: "))
  155.     print("")
  156.     print(firstLine(t_name,quarter,grade) + " " + secondLine(t_name,grade,quarter))
  157.     print("")
  158.     nickname = input("Enter student nickname: ")    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement