PGoCareerGoCareer prep tools
Home
LoginSign up
  • Java
  • Python
  • AI
  • React
  • Angular
  • PHP
  • Node.js
  • SQL
  • DSA
  • HTML
  • CSS
  • JS
  • Spring
  • ML
  • MongoDB

Python · Theory

Python Built-in Functions

← All stacks

Theory

43/268

Python Built-in Functions

Built-in functions ship with Python. You call them without import: print, len, type, range, sum, min, max, sorted, enumerate, zip, input, int, str, list. They keep small scripts consistent. len(names) is the size. names.count("Asha") is how many times Asha appears — different job. Mixing len and count is a classic MCQ fail.

Name eight you actually use. Don’t recite fifty. input() always returns text — wrap with int() if you need a number. sorted(a) returns a new list; a.sort() is a list method, not a built-in that returns the list.

Python Built-in Functions — output — 3 60 30. Three builtins on one list.

Diagram
def square(n):
      return n * n
         │ square(5)
         ▼
        25
Exam tip

len vs count — size vs how many times.

Example

# Built-in functions
nums = [10, 20, 30]
print(len(nums), sum(nums), max(nums))

Python Built-in Functions — output: 3 60 30. Three builtins on one list.

Short notes

  • DefNo import. print len type range.
  • Ruleinput() returns str.
  • Traplen vs count. sorted vs sort.

Questions

1

Explain Built-in Functions as if you are teaching a junior — definition, then one tiny script.

2

What does the example print, and why?

3

What mistake do freshers make with Built-in Functions?

Previous← Functions in PythonNextLambda Functions in Python →
P

GoCareerGo

Utilities · Preparation Hub · Resume · CV · Tools — one workspace.

Workspace

DashboardProfilePreparation HubResume builderCV builderCareer planning

PDF Tools

Merge PDFSplit PDFCompress PDFImage to PDFAll toolsJobs

Image & QR

Compress ImageResize ImageQR ScannerQR GeneratorBlogIT interview prep

Company

FAQFeedbackContactPrivacyTermsSitemap

© 2026 GoCareerGo. Keep moving forward.