CodeX
Published in

CodeX

How to use format(), an in-built function in Python

I have been studying Python for a year now in an attempt to learn data science and other methodologies in this field. I had learned the inbuilt print() function early on in my studies, as the first program that any Python student makes is to print the words “Hello World” onto the screen. One thing that I was not very sure about, however, was the format() function, so I refrained from using it.

--

--

--

Everything connected with Tech & Code. Follow to join our 900K+ monthly readers

Recommended from Medium

4 Tips To Speed Up Building Your App

Thinking Recursively: An Experience Report

Extend robotframework using the robotframework python lib core

Coding buddies

From Javascript to Python

How to install Jenkins server on a AWS Linux Instance

Challenges in public cloud adoption and ways to overcome them

Challenges in public cloud adoption and ways to overcome them

Building a REST API using Spring Boot 2.0

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Tracyrenee

Tracyrenee

I have close to five decades experience in the world of work, being in fast food, the military, business, non-profits, and the healthcare sector.

More from Medium

How to Partition an Unsorted List in Python

Python Tuples Named and Unnamed

5 Useful Tips and Tricks You Will Want to Know When Using Python — part 3

ValueError: Setting an Array Element with a Sequence