Created
July 18, 2016 12:56
-
-
Save Kingwindie/41e521b3392460b3b44a9afbdff6c7e0 to your computer and use it in GitHub Desktop.
This file contains 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
puts "YUrI TOMoko".downcase | |
puts "spaceship".reverse | |
puts "racecar".reverse | |
puts "1776".reverse | |
puts 12 * "4".to_i | |
puts 3.to_s + "times a day" |
This file contains 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
puts "hello".upcase | |
puts "goodbye".downcase | |
puts "kingsley".capitalize | |
puts "chewbacca".length | |
puts "what are You DOing".swapcase | |
puts 2.even? | |
puts 3.even? | |
puts 2.odd? | |
puts 3.odd? | |
puts 10.next | |
# puts "5".to_i+3,or "5"+3.to_s use this to fix "5"+3(usually an error message) to s means to string to i means to integer | |
puts "5".to_i+3 | |
puts "5"+3.to_s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment