<commit_before># This file is a transcript of the IRB session shown in the movie.
# You should be able to cut and paste it into IRB to get 
# the same results shown in the comments.

# irb
1..10
# => 1..10
x = 1..10
# => 1..10
x.class
# => Range
1..10.class
# ArgumentError: bad value for range
# 	from (irb):4
# 	from :0
(1..10).class
# => Range
x.begin
# => 1<commit_msg>Adds in further notes on ranges<commit_after># This file is a transcript of the IRB session shown in the movie.
# You should be able to cut and paste it into IRB to get
# the same results shown in the comments.

#use a range especially when we have very large numbers
#a range of numbers
# irb

#inclusive range 1..10 (give all numbers to 10)- more common
#exclusive range 1..10 (give all numbers to 9)
1..10
# => 1..10 -range object
x = 1..10
# => 1..10
x.class
# => Range
1..10.class
# ArgumentError: bad value for range
# 	from (irb):4
# 	from :0
(1..10).class
# => Range- careful with ranges assign to a value or parenthesis
x.begin
# => 1
{'fraction_non_alphanumeric': 0.11515748031496063, 'fraction_numerical': 0.05019685039370079, 'mean_word_length': 3.168032786885246, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, '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': '5710226', 'n_tokens_mistral': 376, 'n_tokens_neox': 344, 'n_words': 159}