Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

I do not undwestand this error

0 votes
asked Sep 19, 2020 by Megan Parsons (120 points)
File "main.py", line 1                                                                       

    freq = 1.4\((100*10^3) + 2(680*10^3)) * 10^-6 :                                            

                                                  ^                                            

SyntaxError: unexpected character after line continuation character

1 Answer

+1 vote
answered Sep 19, 2020 by xDELLx (10,500 points)

A few things:

^ is the bitwise exor operator in python

is the division operator in python

pow () function is used to used to calculate mathematical operation ->x^y

Corrected snippet:

freq = 1.4/((100*pow(10,3)) + 2 *(680*pow(10,3))) * pow(10,6)
print freq

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...