<commit_before>puts "What is your first name?"
first_name = gets.chomp.capitalize
puts "What is your middle name?"
middle_name = gets.chomp.capitalize
puts "What is your last name?"
last_name = gets.chomp.capitalize
puts "Greetings #{first_name} #{middle_name} #{last_name}"

puts "What is your favorite number?"
number = gets.chomp.to_i + 1
better_number = number
puts "How about #{better_number}, its bigger and better number!"

# How do you define a local variable?

A local variable is local in scope and can only be accessed in certain places. For example, if a variable is defined in a method, that variable defined outside of the method can have a different value assigned to it although both variables can be named the same.

How do you define a method?

Methods are blocks of code the computer executes instead of having to write code over and over.

What is the difference between a local variable and a method?

Variables store information assigned to them. Meanwhile methods allow us to execute a piece of code repeadtedly.

How do you run a ruby program from the command line?

Enter the terminal, not irb. Type in "ruby [insert file name here].rb"

How do you run an RSpec file from the command line?

Enter the terminal, not irb. Type in "rspec [insert file name here].rb"

What was confusing about this material? What made sense?

This was pretty straight forward and a review of some of the first few Code Academy lesson. I did, however, learn how to run the rb file from the terminal and how to rspec.
<commit_msg>Update 4.3 files<commit_after>puts "What is your first name?"
first_name = gets.chomp.capitalize
puts "What is your middle name?"
middle_name = gets.chomp.capitalize
puts "What is your last name?"
last_name = gets.chomp.capitalize
puts "Greetings #{first_name} #{middle_name} #{last_name}"

puts "What is your favorite number?"
number = gets.chomp.to_i + 1
better_number = number
puts "How about #{better_number}, its bigger and better number!"

# How do you define a local variable?

A local variable is local in scope and can only be accessed in certain places. For example, if a variable is defined in a method, that variable defined outside of the method can have a different value assigned to it although both variables can be named the same.

How do you define a method?

Methods are blocks of code the computer executes instead of having to write code over and over.

What is the difference between a local variable and a method?

Variables store information assigned to them. Meanwhile methods allow us to execute a piece of code repeadtedly.

How do you run a ruby program from the command line?

Enter the terminal, not irb. Type in "ruby [insert file name here].rb"

How do you run an RSpec file from the command line?

Enter the terminal, not irb. Type in "rspec [insert file name here].rb"

What was confusing about this material? What made sense?

This was pretty straight forward and a review of some of the first few Code Academy lesson. I did, however, learn how to run the rb file from the terminal and how to rspec.

Link to do_something method: https://github.com/jbagins1/phase-0/blob/master/week-4/define-method/my_solution.rb
{'fraction_non_alphanumeric': 0.05566037735849057, 'fraction_numerical': 0.00220125786163522, 'mean_word_length': 4.400679117147708, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2856699', 'n_tokens_mistral': 869, 'n_tokens_neox': 850, 'n_words': 495}