play_arrow #1. Course Overview | Complete Python Tutorial in Hindi | Python Tutorial play_arrow #2. Why do we need programming languages in Hindi play_arrow #3. What is Python | applications of a Python programming language in hindi | Python Tutorial play_arrow #4 . Features of python | Hindi | Python Tutorial play_arrow #5. Quick History of Python Programming Language in HINDI | Python Tutorial play_arrow #6. Installing Python | Installing VS Code | Installing Sublime | Python Tutorial play_arrow #7. Ways of running Python Program | Interactive Mode | Scripting Mode play_arrow #8. Running Program on Smartphone | Running Program without installing python | play_arrow #9. Print function in Python | HINDI | Python Tutorial play_arrow #10.Help function in Python | HINDI | Python Tutorial play_arrow #11. Variables in Python | Python Variables | Python Tutorial play_arrow #12. Type function in python | Python Tutorial play_arrow #13 . Comments in python | Python in Comments | Python Tutorial play_arrow #14. Keywords in Python | Python Keywords in hindi | Python Tutorial play_arrow #15. Identifiers in Python | Python Identifiers in Hindi | Python Tutorial play_arrow #16. How to check any word is valid Identifier (keyword) in Python using Code | Python Tutorial play_arrow #17. Indentation in Python | Python Indentation in Hindi | Python Tutorial play_arrow #18. What is Datatype | Python Tutorial play_arrow #19. Numeric Data Type in Python in Hindi | Python Tutorial play_arrow #20. String Type in Python | Python String | String Immutability | Python Tutorial play_arrow #21 Slice Operator | Slicing of String in python | Python Tutorial play_arrow #22. Python Negative Indexing | format() , lower() , title() ,startswith() | methods play_arrow #23. Some more string methods | index(),count(),find(),split(),join(), swapcase() play_arrow #24. 5 Most important string questions | String Exercise Hindi | Python Tutorial play_arrow #25. List Type in Python | Python Tutorial play_arrow #26. List Operations | Important Functions | Important Methods | Python Tutorial play_arrow #27. Tuple in Python | Tuple Operations in Python | Python Tutorial play_arrow #28. Set Type in Python | Python Set | Python Tutorial play_arrow #29. Dictionary in Python | Python Dictionary | Dictionary Operations | Python Tutorial play_arrow #30. Type conversion in Python | Type Casting in Python | Python Tutorial play_arrow #31. if , if..else , if..elif..else in Python | Conditional Statements in Python | Python Tutorial play_arrow #32. Loops in python | For Loop | While Loop | range function | Python Tutorial play_arrow #33. Practical Session of Loops in Python | For loop | while loop | Python Tutorial play_arrow #34. Loop with else in python | for ..else | while..else | Python Tutorial play_arrow #35. break , continue and pass statement in Python | Python Tutorial play_arrow #36. Functions in Python | Complete Explanation | Python Tutorial pause #37. How to use functions in our Program | Even number | Prime Number | Python Tutorial play_arrow #38. Lambda Functions in Python | Python Tutorial play_arrow #39. map , filter function in python | Python Tutorial play_arrow #40. PyCharm Installation | reduce function in python | Python Tutorial
#37. How to use functions in our Program | Even number | Prime Number | Python Tutorial
#37. How to use functions in our Program | Even number | Prime Number | Python Tutorial

In this video, I am to teach you how to use functions in Python programming language with practical examples. write a program to check number give number is prime or not write a program to check the given number is even or not using the function. Learn Python in One Video in Hindi: https://youtu.be/7GYHAJdHFbE Learn Core Java Basics : https://youtu.be/9yBlFPKiCdY Learn Servlet in Hindi: https://www.youtube.com/playlist?list=PL0zysOflRCel5BSXoslpfDawe8FyyOSZb Learn JDBC Programming : https://www.youtube.com/playlist?list=PL0zysOflRCenjuvOwumYLG9TCsEQZrV2M Learn c,java,python,kotlin basics : https://www.onlyjavatech.com/ TechSoft INDIA official website: https://www.techsoftindia.co.in/ Durgesh Tiwari Website : https://www.durgeshkumartiwari.com/ Follow me on Instagram: https://www.instagram.com/durgesh_k_t/ topic covered: how to use functions in a python program, program to check even number python program, how to check even number python program, the prime number program in python, print prime even numbers between 1 to 100 python, print even numbers between 1 to 100 python , correct way of using functions in python in hindi


Even_Print.py
#Function for checking even number
def isEven(n):
    if n % 2 == 0:
        return True
    else:
        return False


##################now going to call the function#####
# answer=isEven(3)
# print(answer)
n = int(input("Enter number :"))
if isEven(n):
    print("Given number is even")
else:
    print("Given number is not even")
################even number in range############
for i in range(1, 101):
    if isEven(i):
        print(i, end=" ")
Prime_Print.py
def isPrime(n):
    f = 0
    for i in range(1, n + 1):
        if n % i == 0:
            f = f + 1
    if f == 2:
        return True
    else:
        return False


##############################
# print(isPrime(13))

for i in range(1, 101):
    if isPrime(i):
        print(i, end=" ")