Get the App
SLTechnology News&Howtos  ›  Development  › 

How python uses the input () function

Shulou Source: shulou.com Published: 2022-06-01 02:37:59 09月21日 Update

Editor to share with you how python uses the input () function, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Input

Input (): this function takes a standard input data and returns it as string.

X = input ("Please enter your last name:") print (f "my first name is {x}")

The results are as follows:

These are all the contents of the article "how python uses the input () function". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Functions articles content input not much names most names data more standards knowledge types results industry information information channels channels references learning Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Docker NVidia Shulou Tech Info MariaDB