Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

One simple python question confused me, I write my code in Visual Studio Code, and it tells me I have an error. I assume it's

One simple python question confused me, I write my code in Visual Studio Code, and it tells me I have an error. I assume it's because I have the "@" symbol, but I don't know why it can run in terminal. Could someone help me? image text in transcribedimage text in transcribedPlease help me ,thank you!!

tes3.py tes3.py Users > judy > tes3.py 1 def main(): 2 email = input() 3 print(email) 4 main() 1: Code m X A PROBLEMS OUTPUT DEBUG CONSOLE TERMINAL python -u "/Users/judy/tes3.py" + -python -u "/Users/judy/tes3.py" Judy@Email Traceback (most recent call last): File "/users/judy/tes3.py", line 4, in modules File "/Users/judy/tes3.py", line 2, in main email = input() File "", line 1 Judy@email SyntaxError: invalid syntax main() (g. FO Python 3.7.2 64-bit AO Ln 1, Col 12 Tab Size: 4 UTF-8 LF Python & fi judy judy@JudydeMacBook-Pro ~-zsh 80x24 Last login: Sun Mar 7 00:21:06 on ttys000 python3 tes3.py Judy@Email Judy@Email

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional SQL Server 2012 Internals And Troubleshooting

Authors: Christian Bolton, Justin Langford

1st Edition

1118177657, 9781118177655

More Books

Students also viewed these Databases questions

Question

In thi:

Answered: 1 week ago