Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

Error when calling class constructor with Python in Vscode

$
0
0

enter image description here

class CircularlyLinkedList:    def __init__(self):        self.tail = None        self.size = 0..

When I ran the above code and entered

ls1 = CirculralyLinkedList()

An error occurred: An expression must come after '('.

This error did not occur when running with IDLE.

If I need to type something after '(', please tell me what to type.


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>