{"id":2890,"date":"2018-10-24T14:14:15","date_gmt":"2018-10-24T08:44:15","guid":{"rendered":"https:\/\/tutorials.eyehunts.com\/?p=2890"},"modified":"2021-05-18T15:44:51","modified_gmt":"2021-05-18T10:14:51","slug":"python-wait-for-input-user","status":"publish","type":"post","link":"https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/","title":{"rendered":"Python wait | How to Python wait for input"},"content":{"rendered":"\n<p>In an application or program, sometimes you need to stop the execution of the next step or wait for a second. For example, block a user resend the OTP button for and 30 seconds. You can do Python wait by using the <a rel=\"noopener noreferrer\" href=\"https:\/\/tutorial.eyehunts.com\/\/python\/python-sleep-function-time-milliseconds\/\" target=\"_blank\">Python time module sleep()<\/a> function. <\/p>\n\n\n\n<p>Here you will learn about what function you can use and how to work on python wait.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/\/wp-content\/uploads\/2018\/10\/Python-wait-How-to-Python-wait-for-input.png?resize=550%2C228&#038;ssl=1\" alt=\"Python wait | How to Python wait for input\" class=\"wp-image-2927\" width=\"550\" height=\"228\" srcset=\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2018\/10\/Python-wait-How-to-Python-wait-for-input.png?w=878&amp;ssl=1 878w, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2018\/10\/Python-wait-How-to-Python-wait-for-input.png?resize=300%2C124&amp;ssl=1 300w, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2018\/10\/Python-wait-How-to-Python-wait-for-input.png?resize=768%2C318&amp;ssl=1 768w, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2018\/10\/Python-wait-How-to-Python-wait-for-input.png?resize=732%2C303&amp;ssl=1 732w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Syntax<\/strong><\/h3>\n\n\n\n<p>A simple syntax for the stop a python program for a second. In the <strong>sleep() function<\/strong>, you have to pass the <strong>t<\/strong> value as seconds.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted lang:default decode:true\">time.sleep(t)<\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Python wait Example<\/strong><\/h2>\n\n\n\n<p>Here we are importing direct sleep members from the time module, you can read this tutorial for\u00a0<a rel=\"noopener noreferrer\" href=\"https:\/\/tutorial.eyehunts.com\/\/python\/python-import-module-library-package-file-system\/\" target=\"_blank\">Import from\u00a0module_name.member_name<\/a>.<\/p>\n\n\n\n<p>In this example the first line print immediately but the second-line program will wait for 5 seconds.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted lang:default decode:true\">from time import sleep\n\nprint(\"Start: Wait\")\nsleep(5)\nprint(\"Wait is over\")\n<\/pre>\n\n\n\n<p><strong>Output:<\/strong>&nbsp;Start: Wait<br>Wait is over<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Python waits for input user Input&nbsp;<\/strong><\/h2>\n\n\n\n<p>Here is an example where use Enter a name then program will reply in 5 seconds. You have to <a href=\"https:\/\/tutorial.eyehunts.com\/\/python\/python-import-module-library-package-file-system\/\">import <\/a>a time&nbsp;module to use a <a href=\"https:\/\/tutorial.eyehunts.com\/\/python\/python-sleep-function-time-milliseconds\/\">sleep() function<\/a>.<\/p>\n\n\n\n<p>For taking an input from a user, use in-build <a href=\"https:\/\/tutorial.eyehunts.com\/\/python\/python-input-function-string-integer-number\/\" target=\"_blank\" rel=\"noopener noreferrer\">function input<\/a>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted lang:default decode:true\">import time\n\nname = input('Please Enter Your Name \\n')\n\nprint('Wait ', 5, 'seconds for reply.')\ntime.sleep(5)\n\nprint('Hi', name, ', How are you, I am bot!')<\/pre>\n\n\n\n<p><strong>Output:<\/strong> check this gif image file<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"832\" height=\"214\" src=\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/\/wp-content\/uploads\/2018\/10\/How-to-Python-wait-for-input-output.gif?resize=832%2C214&#038;ssl=1\" alt=\" Python wait for input output\" class=\"wp-image-2929\"\/><\/figure><\/div>\n\n\n\n<p>It can your interview question for python programming.<\/p>\n\n\n\n<p>Do comment if you have any doubt and suggestion on this tutorial.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>Note:<\/strong>&nbsp;This example (Project) is developed in&nbsp;PyCharm 2018.2 (Community Edition)<br>JRE: 1.8.0<br>JVM:&nbsp;<a href=\"http:\/\/openjdk.java.net\/\" rel=\"noopener\">OpenJDK<\/a>&nbsp;64-Bit Server VM by JetBrains s.r.o<br>macOS 10.13.6<\/p><p><strong>Python 3.7<\/strong><\/p><p>All&nbsp;<strong>Python wait for input user Input Example <\/strong>is in Python 3, so it may change its different from python 2 or upgraded versions.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>In an application or program, sometimes you need to stop the execution of the next step or wait for a second. For example, block a user resend the OTP button for and 30 seconds. You can do Python wait by using the Python time module sleep() function. Here you will learn about what function you&hellip;&nbsp;<a href=\"https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Python wait | How to Python wait for input<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[30],"tags":[43],"post_series":[],"class_list":["post-2890","post","type-post","status-publish","format-standard","hentry","category-python","tag-python-date-time-functions"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python Wait | How to Python Wait for Input from user example - EyeHunts<\/title>\n<meta name=\"description\" content=\"In an application or program, you need to stop the execution of the next step\/wait for a second. Python Wait using python time module sleep\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Wait | How to Python Wait for Input from user example - EyeHunts\" \/>\n<meta property=\"og:description\" content=\"In an application or program, you need to stop the execution of the next step\/wait for a second. Python Wait using python time module sleep\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:published_time\" content=\"2018-10-24T08:44:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-18T10:14:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tutorial.eyehunts.com\/\/wp-content\/uploads\/2018\/10\/Python-wait-How-to-Python-wait-for-input.png\" \/>\n<meta name=\"author\" content=\"Rohit\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rohit\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/\",\"name\":\"Python Wait | How to Python Wait for Input from user example - EyeHunts\",\"isPartOf\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tutorial.eyehunts.com\/\/wp-content\/uploads\/2018\/10\/Python-wait-How-to-Python-wait-for-input.png\",\"datePublished\":\"2018-10-24T08:44:15+00:00\",\"dateModified\":\"2021-05-18T10:14:51+00:00\",\"author\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\"},\"description\":\"In an application or program, you need to stop the execution of the next step\/wait for a second. Python Wait using python time module sleep\",\"breadcrumb\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/#primaryimage\",\"url\":\"https:\/\/tutorial.eyehunts.com\/\/wp-content\/uploads\/2018\/10\/Python-wait-How-to-Python-wait-for-input.png\",\"contentUrl\":\"https:\/\/tutorial.eyehunts.com\/\/wp-content\/uploads\/2018\/10\/Python-wait-How-to-Python-wait-for-input.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tutorial.eyehunts.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python wait | How to Python wait for input\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\",\"url\":\"https:\/\/tutorial.eyehunts.com\/\",\"name\":\"Tutorial\",\"description\":\"By EyeHunts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/tutorial.eyehunts.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\",\"name\":\"Rohit\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777374971\",\"contentUrl\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777374971\",\"caption\":\"Rohit\"},\"description\":\"Degree in Computer Science and Engineer: App Developer and has multiple Programming languages experience. Enthusiasm for technology &amp; like learning technical.\",\"url\":\"https:\/\/tutorial.eyehunts.com\/author\/rohit\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Wait | How to Python Wait for Input from user example - EyeHunts","description":"In an application or program, you need to stop the execution of the next step\/wait for a second. Python Wait using python time module sleep","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/","og_locale":"en_US","og_type":"article","og_title":"Python Wait | How to Python Wait for Input from user example - EyeHunts","og_description":"In an application or program, you need to stop the execution of the next step\/wait for a second. Python Wait using python time module sleep","og_url":"https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/","og_site_name":"Tutorial","article_published_time":"2018-10-24T08:44:15+00:00","article_modified_time":"2021-05-18T10:14:51+00:00","og_image":[{"url":"https:\/\/tutorial.eyehunts.com\/\/wp-content\/uploads\/2018\/10\/Python-wait-How-to-Python-wait-for-input.png","type":"","width":"","height":""}],"author":"Rohit","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rohit","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/","url":"https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/","name":"Python Wait | How to Python Wait for Input from user example - EyeHunts","isPartOf":{"@id":"https:\/\/tutorial.eyehunts.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/#primaryimage"},"image":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/#primaryimage"},"thumbnailUrl":"https:\/\/tutorial.eyehunts.com\/\/wp-content\/uploads\/2018\/10\/Python-wait-How-to-Python-wait-for-input.png","datePublished":"2018-10-24T08:44:15+00:00","dateModified":"2021-05-18T10:14:51+00:00","author":{"@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1"},"description":"In an application or program, you need to stop the execution of the next step\/wait for a second. Python Wait using python time module sleep","breadcrumb":{"@id":"https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/#primaryimage","url":"https:\/\/tutorial.eyehunts.com\/\/wp-content\/uploads\/2018\/10\/Python-wait-How-to-Python-wait-for-input.png","contentUrl":"https:\/\/tutorial.eyehunts.com\/\/wp-content\/uploads\/2018\/10\/Python-wait-How-to-Python-wait-for-input.png"},{"@type":"BreadcrumbList","@id":"https:\/\/tutorial.eyehunts.com\/python\/python-wait-for-input-user\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tutorial.eyehunts.com\/"},{"@type":"ListItem","position":2,"name":"Python wait | How to Python wait for input"}]},{"@type":"WebSite","@id":"https:\/\/tutorial.eyehunts.com\/#website","url":"https:\/\/tutorial.eyehunts.com\/","name":"Tutorial","description":"By EyeHunts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tutorial.eyehunts.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1","name":"Rohit","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/image\/","url":"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777374971","contentUrl":"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777374971","caption":"Rohit"},"description":"Degree in Computer Science and Engineer: App Developer and has multiple Programming languages experience. Enthusiasm for technology &amp; like learning technical.","url":"https:\/\/tutorial.eyehunts.com\/author\/rohit\/"}]}},"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":7636,"url":"https:\/\/tutorial.eyehunts.com\/python\/add-time-delay-in-python-ms-milliseconds-1-second\/","url_meta":{"origin":2890,"position":0},"title":"Add Time delay in Python | MS (milliseconds), 1 second","author":"Rohit","date":"February 18, 2020","format":false,"excerpt":"You can use a sleep function to add a delay in the execution of a program. You might be thinking about why needed to make your Python program wait for something? Here is the answer, You needed a time delay in the program if there is\u00a0a file to upload or\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python sleep function output","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2018\/10\/Python-sleep-function-output.gif?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2018\/10\/Python-sleep-function-output.gif?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2018\/10\/Python-sleep-function-output.gif?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2018\/10\/Python-sleep-function-output.gif?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":22145,"url":"https:\/\/tutorial.eyehunts.com\/python\/clear-screen-python-example-code\/","url_meta":{"origin":2890,"position":1},"title":"Clear screen Python | Example code","author":"Rohit","date":"December 14, 2021","format":false,"excerpt":"Use the OS module to Clear the screen in Python, if we want to clear the screen while running a Python script. You have to use different commands for different platforms like Windows and Linux. To clear the screen in the cell prompt can do this by pressing Control +\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/Clear-screen-Python.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":23280,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-clear-output\/","url_meta":{"origin":2890,"position":2},"title":"Python clear output","author":"Rohit","date":"September 14, 2023","format":false,"excerpt":"In Python, you can clear the output in various ways depending on the context in which you want to clear it. Here are some common methods: Clearing the Terminal\/Console Output: If you're working in a terminal or console and want to clear the output, you can use platform-specific commands. In\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/09\/Python-clear-output.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":23087,"url":"https:\/\/tutorial.eyehunts.com\/python\/while-loop-yes-or-no-python-example-code\/","url_meta":{"origin":2890,"position":3},"title":"While loop Yes or No Python | Example code","author":"Rohit","date":"December 9, 2021","format":false,"excerpt":"Use while true with if statement and break statement to create a While loop yes or no in Python. Simple if while condition equal to \"N\" then wait for the user input of Y before exiting. The basic syntax of a while loop in Python is as follows: while condition:\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"While loop yes or no Python","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/12\/While-loop-yes-or-no-Python.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":35820,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-class-function\/","url_meta":{"origin":2890,"position":4},"title":"Python class function","author":"Rohit","date":"February 1, 2023","format":false,"excerpt":"Python class function is simply a function that is defined within the scope of the class. The functions can be defined within the class exactly the same way that functions are normally created. class Name_of_Class: \u00a0\u00a0\u00a0<methods\/Function> Python class function example Simple example code. # python classclass University: # Function def\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python class function","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/02\/Python-class-function.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":23447,"url":"https:\/\/tutorial.eyehunts.com\/python\/python-void-function\/","url_meta":{"origin":2890,"position":5},"title":"Python void function","author":"Rohit","date":"December 17, 2021","format":false,"excerpt":"Python void function is not the same as functions you see in C, C++, or Java. If the Python function does not have any return statement then a special value None returns. Note: void is not a keyword in Python or a type for functions\\methods that return nothing. Python void\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/tutorial.eyehunts.com\/category\/python\/"},"img":{"alt_text":"Python void function","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/12\/Python-void-function.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/2890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/comments?post=2890"}],"version-history":[{"count":0,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/2890\/revisions"}],"wp:attachment":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/media?parent=2890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/categories?post=2890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/tags?post=2890"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/post_series?post=2890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}