In rudy, does puts and print do the same thing | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

In rudy, does puts and print do the same thing

Ruby puts and print

11th Feb 2019, 6:30 PM
SCP 251
SCP 251 - avatar
1 Antwort
+ 3
Yes, but there's a difference - puts adds newline after each argument while print doesn't. You can read about this here: https://www.rubyguides.com/2018/10/puts-vs-print/
11th Feb 2019, 6:58 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar