Skip to content

Instantly share code, notes, and snippets.

View Magdalenaspace's full-sized avatar

Magdalena Samuel Magdalenaspace

  • California Los Angeles
View GitHub Profile
@TheMuellenator
TheMuellenator / optionals.swift
Last active March 20, 2024 00:00
iOS repl.it - Optionals Challenge Solution
//Don't change this
var studentsAndScores = ["Amy": Int(readLine()!)!, "James": Int(readLine()!)!, "Helen": Int(readLine()!)!]
func highestScore(scores: [String: Int]) {
//Write your code here.
let a = studentsAndScores["Amy"]!
let b = studentsAndScores["James"]!
let c = studentsAndScores["Helen"]!