Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 382b8fe

Browse files
getting user info
1 parent 9ad17fb commit 382b8fe

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
def multiple_returns(x,y,z):
2+
3+
return x,y,z
4+
5+
def main():
6+
first_name = input("Enter your first name : ")
7+
last_name = input("Enter your last name : ")
8+
while True:
9+
email = input("Enter you email address : ")
10+
11+
if not email.endswith("@gmail.com") :
12+
print("Please enter valid email which endswith (@gmail.com) ")
13+
else:
14+
break
15+
16+
print(f"Received the following User Data {multiple_returns(first_name,last_name,email)}")
17+
18+
if __name__ == "__main__":
19+
main()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /