Question: Python 3.5 Json file: http://www.jsoneditoronline.org/?id=62d69afedc4fbcc3bd8bb03bdacdafa4 Json file will be saved in /data/ folder Need to create a python program that does the following: Takes user
Python 3.5
Json file: http://www.jsoneditoronline.org/?id=62d69afedc4fbcc3bd8bb03bdacdafa4
Json file will be saved in /data/ folder
Need to create a python program that does the following:
Takes user input for name of soulshield Takes user input for number of soulshield If number and/or name are not in json, it should return a value that says "Soulshield not in Database"
IF the name is in Soulshield:
return the following from the Json as value=response: - Image of Soulshield - Individual Set Effects of Soulshield (broken down into multiple value=responses) If there are no Set Effects for soulshield, it should just return a value that says: Soulshield has no set effect
Now compare the number that the user chose, for the same name of the soulshield, and return the following from Json as value=responses: - Image of the soulshield number - Primary Statistics (broken down into individual value=responses) - Secondary Statistics (broken down into individual value=responses)
Example: User Input: Asura User Input: 1 Json values: Soulshield_Name = Asura Soulshield_Number = 1
Soulshield_Image = "http://scabbardstudio.com/images/bopae/icons/6.png" Set_Effect_1 = "3-Piece" Set_Effect_1_Info = "Attack Power +5" Set_Effect_2 = "5-Piece" Set_Effect_2_Info = "Critical Damage +7%" Set_Effect_3 = "8-Piece" Set_Effect_3_Info = "HP +1800, Piercing +200"
[Soulshield]_[Number]_Image = "https://cdn.discordapp.com/attachments/249299824883531777/278806322932219904/EquipGem_SeolOkGungBoss_Extra_Pos1.png" [Soulshield]_[Number]_Primary_Name_1 = HP [Soulshield]_[Number]_Primary_Name_1_Min = 2420 [Soulshield]_[Number]_Primary_Name_1_Max = 3460 [Soulshield]_[Number]_Primary_Name_2 = Accuracy [Soulshield]_[Number]_Primary_Name_2_Min = 165 [Soulshield]_[Number]_Primary_Name_2_Max = 237 [Soulshield]_[Number]_Secondary_Name_1 = Critical [Soulshield]_[Number]_Secondary_Name_1_Min = 80 [Soulshield]_[Number]_Secondary_Name_1_Max = 101 [Soulshield]_[Number]_Secondary_Name_2 = Defense [Soulshield]_[Number]_Secondary_Name_2_Min = 80 [Soulshield]_[Number]_Secondary_Name_2_Max = 101 [Soulshield]_[Number]_Secondary_Name_3 = Block [Soulshield]_[Number]_Secondary_Name_3_Min = 80 [Soulshield]_[Number]_Secondary_Name_3_Max = 101
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
