Skip to content
codingem.com

codingem.com

software development and tech.

  • About
  • Courses
    • Swift & iOS
    • Data Science
    • Python
    • Course Platforms
    • Graphic Design & UI/UX
  • Resources
  • Contact
codingem.com
codingem.com

software development and tech.

  • About
  • Courses
    • Swift & iOS
    • Data Science
    • Python
    • Course Platforms
    • Graphic Design & UI/UX
  • Resources
  • Contact

4 Ways to Convert a List to a String in Python (Complete Guide)

Python / By Artturi Jalli

To convert a Python list into a string, use the join() method of a string: Output: This is a complete guide to converting a list to a string in Python. This guide shows you different approaches to making the conversion. Besides, you learn what to do if the list doesn’t have strings, to begin with. …

4 Ways to Convert a List to a String in Python (Complete Guide) Read More »

Python Exponent – Raise a Number to a Power

Python / By Artturi Jalli

To raise a number to a power in Python, use the Python exponent ** operator. For example, 23 is calculated by: And generally n to the power of m by: Python exponent is also related to another similar topic. The exponent notation is a way to express big or small numbers with loads of zeros. …

Python Exponent – Raise a Number to a Power Read More »

How to Print a List in Python

Leave a Comment / Python / By Artturi Jalli

To print the contents of a list in Python, all you need to do is call the print() function on it. Here is an example of printing a list of three fruits in a list: Output: But if you want to print each element of a list separately, you should use a for loop. For …

How to Print a List in Python Read More »

How to Convert String to an Int in Python

Python / By Artturi Jalli

Converting string to int in Python is easy using the built-in int() function. For example, let’s convert the string “100” to an integer: How to Convert Comma-Separated Number String to Int? To convert a comma-separated number string (e.g. 1,000,000) to an int in Python, first, get rid of the commas with the replace() method. Then …

How to Convert String to an Int in Python Read More »

E-mc2 written on chalkboard

Python How to Round Numbers

Python / By Artturi Jalli

To round numbers in Python, use the built-in round() function. For example, let’s round a floating-point number to its nearest integer value: Output: To round up or down, use the math module’s ceil() or floor() functions: In this guide, you will learn how to: Round a decimal number to a certain number of decimals. Round …

Python How to Round Numbers Read More »

white and black printer paper

Python String %s — What Does It Mean? (with Examples)

Python / By Artturi Jalli

Python string with %s is an old string formatting technique. The %s is placed into a string and it acts as a placeholder for another string variable. For example: Output: However, as more modern string formatting techniques have been added to Python, you rarely see this in use. And you should not use it either! …

Python String %s — What Does It Mean? (with Examples) Read More »

black and silver laptop computer on table

How to Create a Module in Python

Python / By Artturi Jalli

To write a module in Python, all you need to do is create a Python file and write some code to it. For example, to create a module called example, create a file called example.py and add the following function to it: There is your first Python module. To use it, you need to import …

How to Create a Module in Python Read More »

How to Manipulate and Clean Data With Python

Data Science, Python / By Artturi Jalli

Data manipulation is an integral part of data preparation. This is especially so since data collection leaves room for duplication and data omission. There are various ways and coding languages for cleaning and manipulating data, but Python is arguably one of the best languages for this. Cleaning and manipulation of data ensure that the data …

How to Manipulate and Clean Data With Python Read More »

Matrix movie still

Mutable and Immutable in Python: A Complete Guide (Examples)

Python / By Artturi Jalli

In Python, a mutable object can be changed, but an immutable object cannot. For example, a tuple is an immutable data type. You cannot change its elements after creating it: In contrast, a list is a mutable collection. You can change its contents afterward: This is a comprehensive guide to understanding the concepts of mutable …

Mutable and Immutable in Python: A Complete Guide (Examples) Read More »

Lists vs Tuples in Python: What’s The Difference?

Python / By Artturi Jalli

In short, the main difference between tuples vs lists in Python is mutability. In other words, a Python list can be changed, but a tuple cannot. This means a tuple performs slightly better than a list. But at the same, a tuple has fewer use cases because it cannot be modified. In short, here are …

Lists vs Tuples in Python: What’s The Difference? Read More »

Posts navigation
← Previous Page 1 … 42 43 44 … 48 Next Page →

About the Author

Hi, I'm Artturi Jalli! ✌️

I'm a Tech enthusiast from Finland. 🇫🇮

👨‍🏫I make Coding & Tech easy and fun with well-thought how-to guides and reviews.

🌍 I've already helped 3M+ visitors reach their goals!

Contact

ChatGPT—What Is It? How to Use It? (Examples, Tips & More)

ChatGPT is the newest Artificial Intelligence-based language model developed by OpenAI. Essentially, ChatGPT is an AI-based chatbot that can answer any question. It understands complex topics, like...

Continue Reading

13 Best AI Art Generators of February 2023 (+ How to Use Them)

Choosing the right type of AI art generator is crucial to produce unique, original, and professional artwork. With the latest advancements in AI art generation, you can...

Continue Reading

How to Make an App — A Complete 10-Step Guide (in 2023)

Are you looking to create the next best-seller app? Or are you curious about how to create a successful mobile app? This is a step-by-step guide on...

Continue Reading

9 Best Graphic Design Courses + Certification (in 2023)

Do you want to become a versatile and skilled graphic designer? This is a comprehensive article on the best graphic design certification courses. These courses prepare you...

Continue Reading

8 Best Python Courses with Certifications (in 2023)

Are you looking to become a professional Python developer? Or are you interested in programming but don’t know where to start? Python is a beginner-friendly and versatile...

Continue Reading

8 Best Swift & iOS App Development Courses [in 2023]

Are you looking to become an iOS developer? Do you want to create apps with an outstanding design? Do you want to learn to code? IOS App...

Continue Reading

Recent Posts

  • How to Use AI Art Generators—Input Design (Prompt Engineering)
  • How to Get HTML Element (X, Y) Position with JavaScript
  • Double Quotes vs Single Quotes in JavaScript
  • ChatGPT—What Is It? How to Use It? (Examples, Tips & More)
  • 13 Best AI Art Generators of February 2023 (+ How to Use Them)

Categories

  • Artificial Intelligence
  • Crypto & NFT
  • Data Science
  • Favorites
  • Git
  • iOS Development
  • JavaScript
  • Linux
  • Programming
  • Programming Tips
  • Python
  • Python for Beginners
  • R
  • Software
  • Swift
  • Swift for Beginners
  • Technology
  • Web development

Copyright © 2023 codingem.com | Powered by Astra WordPress Theme