# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3.9.12 64-bit (windows store)
#     language: python
#     name: python3
# ---

import unittest

# +
city_names = ["Irvine", "San Francisco", "Costa Mesa"]
latitudes = [33.6846, 37.7749, 33.6638]
longitudes = [117.8265, 122.4194, 117.9047]


class TestStringMethods(unittest.TestCase):
    def test_equal_lengths(self, array_of_lists):
        list_of_lengths = []
        for input_array in array_of_lists:
            list_of_lengths.append(len(input_array))
        flag = len(set(list_of_lengths)) == len(list_of_lengths)
        error_message = "Input lists are of unequal lengths"
        self.assertTrue(flag, error_message)


dict1 = {
    "names": city_names,
    "latitudes": latitudes,
    "longitudes": longitudes}

locations = {}
for i in range(len(city_names)):
    locations[i] = {"city_name": city_names[i], "latitude": latitudes[i], "longitude":longitudes[i]}

print(locations)


# +
list_of_vars = ["SQL", "Python", "C++"]

if "Java" in list_of_vars:
    print("True")
else:
    print("False")

# +
city = ['Irvine', 'Santa Ana', 'Costa Mesa']
for item in city:
    print(item)

dict1 = {
    "names": city_names,
    "latitudes": latitudes,
    "longitudes": longitudes}

print(dict1)

for i in range(len(dict1["names"])):
    print(dict1["names"][i], dict1["latitudes"][i], dict1["longitudes"][i])



StarcoderdataJupyterScriptsDedupFiltered