# Write a script that searches for all image files starting with 'Screen Shot' and ending with .png.
# Have the script move all such files into a new directory in your Documents directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The goal is to build a loop that pushes a hash into an array. Each time a new hash is pushed into the array, the number at the end of the hash's assigned name increases by +1 (eg: question_1, then question_2, etc...) | |
# Basically I've been trying to figure out how to turn a string with an integer interpolation for each successive +1 into a new hash name. | |
question_superset_test = [] | |
question_1 = {} | |
puts "Enter question:" | |
question_entry = $stdin.gets.chomp.to_s | |
question_1.merge!(prompt: "#{question_entry}") | |
puts question_1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
activities_I_do = [ | |
"climb", | |
"study", | |
"read", | |
"text mom", | |
"email dad", | |
"socialize IRL" | |
] | |
score_card = [] |