Hi,
I am very new to Pyhton and wants to run a simple script.. but it gives me error..
def main():
print("This is simple python")
if__name__ == "__main__": main()
Its on the 3rd line.. Any help??
Hi,
I am very new to Pyhton and wants to run a simple script.. but it gives me error..
def main():
print("This is simple python")
if__name__ == "__main__": main()
Its on the 3rd line.. Any help??
You need a space between the two words if
and __name__
.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.