LEARNING RUBY: PART 4 | PUTS and PRINT

Sep 28, 2018 10:17 AM
636737004250760266.jpg

Hello everybody, brothers, sisters and !!! Now today, we will be doing some weird job. That's other thing that we do this every time. Back to the point. Today we will start with the difference between puts and print command. I hope you will NOT enjoy.

PUTS

As we have used this many time before, we know what it means. Puts is the short form of (put string) and is used to print the statement as a string. Alright? That's the part of puts statement. You can and you will use this command in your entire ruby programming language.

PRINT

Now here comes the print statement. Print is more or less the same as puts, the only difference lies between where the string will end. In short, whenever you will use the puts statement, it will add up a new line. But when you will use the print command, the code will stop at the exact place where the string ends. If you have any confusion with this, you can search the internet, (option 1), or you can use the below comment section for your queries. If you still have doubts, use it in your code and then you will see the difference between print and puts command.

FEEDBACK

That's all for today, if you are reading my tutorials, good, otherwise AWESOMEE!!!!!!!!!!!!!! This tutorial does not contain any codes to write but we will be putting this into work in our next tutorial!

THANKS A LOT FOR READING! SALAM.

>>>DUSTY WORLD///

Comments

No Comments Exist

Be the first, drop a comment!