Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Noob question. How do i print something without a newline? #189

Closed
gulamf opened this issue Nov 16, 2022 · 2 comments
Closed

Noob question. How do i print something without a newline? #189

gulamf opened this issue Nov 16, 2022 · 2 comments

Comments

@gulamf
Copy link

gulamf commented Nov 16, 2022

Hi,
is it possible to print text without a new line?
Thanks.

@irh
Copy link
Contributor

irh commented Nov 17, 2022

Hi @gulamf 👋

Yes, you can call write on io.stdout().

stdout = io.stdout()
stdout.write 'abc'
stdout.write 'def'
# abcdef

@gulamf
Copy link
Author

gulamf commented Nov 17, 2022

Thanks.

@gulamf gulamf closed this as completed Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants