Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Java
  3. Question
Java

What is the purpose of functions beginning with an underscore "_", e.g., "_my_func()"?

Asked by Madeleine Hill May 13, 2025 594 views 1 answer
Share

About this question

What is the significance of functions that begin with an underscore (_) in Python, like _my_func()? Learn why such functions are often used for internal purposes, indicating they are intended to be private or for internal use only within a module or class.

Your answer

1 Answer

More Java discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Java Blogs

Guides, tips and career advice on Java from JanBask experts.