ОБРАЗОВАНИЕ НАУКА И ИННОВАЦИОННЫЕ ИДЕИ В МИРЕ
https://scientific-jl.org/obr
Выпуск журнала №-70
Часть–3_ Мая –2025
413
2181-3187
THE “RETURN” OPERATOR: THE MAIN MEANS OF RETURNING
RESULTS IN THE PYTHON PROGRAMMING LANGUAGE
G'offorova Zakhrabonu Ikhtiyorjon qizi-
3rd year student of Applied Mathematics at
Fergana State University
Onarkulov Maksadjon Karimberdiyevich
f.m.f.f.d (PhD) - Associate Professor of the
Department of Applied Mathematics and Informatics
Yusupov Mirsaid Abdulaziz oglu
–
Teacher of the Department of Applied Mathematics and Informatics
Abstract
This article programming "return" operator in languages from the function result
in return role and importance The article discusses the concept of " return" general
definition , various programming languages (C++, Python, JavaScript, Java and others
) usage , practical application and examples Also , from " return" of use main principles
, its function inside tasks and programmers for useful tips place received . Article
programming studying new leaders and experienced programmers for useful source as
service does .
Introduction
Programming in the world functions of the program main structural from parts
They are known tasks will do and often result as value or information returns . In this
process, the “return” operator important role plays . The word “ Return” English "
return " in Turkish means and function the result of the program other to the part
transmission for This is used . The article is about the “return” operator. in
programming its place , its syntax , different in languages features and practical
ОБРАЗОВАНИЕ НАУКА И ИННОВАЦИОННЫЕ ИДЕИ В МИРЕ
https://scientific-jl.org/obr
Выпуск журнала №-70
Часть–3_ Мая –2025
414
2181-3187
application surrounding illuminates . Article programming those who are learning for
comfortable manual as working issued then simple from examples pull practical to
projects many information is brought .
"Return" operator and from the function the result return
The "Return" operator definition
"Return" operator from the function result as value , object or information return
for is used . Function own work when finished , press "return" taken result him/her
called to the code This process is programming modular structure provides and the
code again use opportunity gives .
Python programming return operator in the language from the function the value
return for is used . The following main to aspects attention give :
1. What is return? does it ?
Function when done , via return the result outside transmits .
from return next codes not done .
For example , two of the thigh the assembly calculating simple function seeing we
get ( in Python ):
In this example gathered function takes parameters a and b acceptance does , their
the assembly counts and via return the result Returns . Result result to the variable is
stored and will be printed later .
ОБРАЗОВАНИЕ НАУКА И ИННОВАЦИОННЫЕ ИДЕИ В МИРЕ
https://scientific-jl.org/obr
Выпуск журнала №-70
Часть–3_ Мая –2025
415
2181-3187
" Return" main tasks :
- The result of the program other to the part transmission .
- Function from the deadline before completion .
- Terms and conditions based values return
2. Several the value return :
3. return and None:
If return is not specified , the function returns None :
ОБРАЗОВАНИЕ НАУКА И ИННОВАЦИОННЫЕ ИДЕИ В МИРЕ
https://scientific-jl.org/obr
Выпуск журнала №-70
Часть–3_ Мая –2025
416
2181-3187
ОБРАЗОВАНИЕ НАУКА И ИННОВАЦИОННЫЕ ИДЕИ В МИРЕ
https://scientific-jl.org/obr
Выпуск журнала №-70
Часть–3_ Мая –2025
417
2181-3187
4. with return conditional cases :
Practical Example : Calculator
Below is the " return" used without simple calculator function is quoted :
ОБРАЗОВАНИЕ НАУКА И ИННОВАЦИОННЫЕ ИДЕИ В МИРЕ
https://scientific-jl.org/obr
Выпуск журнала №-70
Часть–3_ Мая –2025
418
2181-3187
Conclusion
"Return" operator programming inseparable part from functions result return and
their performance in management important role Plays . Various programming "
return" in languages syntax and application difference although it does , its main goal
– result transmission and the code simplification – does not change . This article via "
return" various aspects , practical examples and use rules was highlighted .
Programmers from " return" right use through effective and understandable code their
writings possible .
Adabiyotlar
1. Kernighan, B. W., & Ritchie, D. M. (1988). *The C Programming Language*.
Prentice Hall.
2. Lutz, M. (2013). *Learning Python*. O’Reilly Media.
3. Flanagan, D. (2020). *JavaScript: The Definitive Guide*. O’Reilly Media.
4. Schildt, H. (2018). *Java: The Complete Reference*. McGraw-Hill Education.
5. Online resurs: Python rasmiy hujjatlari (python.org).
6. Online resurs: Mozilla Developer Network (developer.mozilla.org).