Input and Output
All applications are fundamentally based on input and output.
Introduction
Learning outcomes
Output commands
irb(main):001:0> print "Learning to code is FUN!"
Learning to code is FUN!=> nil
irb(main):002:0> print "1234"
1234=> nilirb(main):001:0> puts "Learning to code is cool!!"
Learning to code is cool!!
=> nil
irb(main):002:0> puts "Hey, I want 2 key lime pies."
Hey, I want 2 key lime pies.
=> nil
irb(main):003:0> x = "My name is ALEX! :)"
=> "My name is ALEX! :)"
irb(main):004:0> puts x
My name is ALEX! :)
=> nilInput commands
Assignment
Knowledge check
Last updated