An optional can either hold a value or nothing(nil) and we can unwrap them with guard let, if let and nil…