Skip to content

Joseph-T-Gordon

A complete log of all recent projects and skills

Menu
  • About me
  • Posts/Projects
  • Resume/Certifications
Menu

Post #30 (Python Programming) – The functionality of python’s print function

Posted on March 11, 2023June 26, 2023 by admin

I was surprised to learn how versatile python’s print function was. You can pass multiple arguments, if you use /n in your screen it creates a new line, if you use sep it can change the default character of spaces between words into what you use and the end will change what that line ends in, allow me to share a snippet of code to demonstrate. These first few posts on python are going to be a little slow but I am looking forward to ramping this up!

print(“Hello”, “how”, “are”, “you”, “today”, sep=”-“, end=”. “)

Hello-how-are-you-today.

print(“Hello what’s your name\nMy name is Joe”)

Hello what’s your name

My name is Joe

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

© 2025 Joseph-T-Gordon | Powered by Minimalist Blog WordPress Theme