Python Forum
Is ::= a typo or actually an operator?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is ::= a typo or actually an operator?
#1
I am running python 3.4, and trying to learn how to use the keyword assert. It's featured on the Pythong docs page https://docs.python.org/3/reference/simp...-statement, section 7.3.

This line is giving me a syntax error:
assert_stmt ::= "assert" expression1 ["," expression2]

Is ::= an operator or a typo? The compiler highlights the first colon when I run it.
Reply


Messages In This Thread
Is ::= a typo or actually an operator? - by Regulus - Jan-22-2018, 03:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  please looking for typo in my code (solution please) jamie_01 1 1,299 Jan-12-2022, 06:45 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020