First CPT Code Segments
This blog shows the first few coding segments/samples of our CPT Project.
full_rocks_list = ["thunder eggs", "obsidian", "geodes", "granite", "conglomerate"]
# This asks the user to input a list of things that they already have
user_rock_list_collection = input("Enter a list of rocks you already have, separated by commas: ").split(", ")
# The computer outputs both the full collection list and the list of things the user already has
print("Your current collection:", user_rock_list_collection)
print("Full list of things to collect:", full_rocks_list)
What is This?
The above code segment is simply a rough model for what we want our collection program to do. Both the user list and full list are printed out so that the user knows exactly what they need to collect next. Another possibility for this specific code segment is to add images so that the user can tell what each rock looks like as they go out looking for it.