1
|
BlockStmt([AssignStmt(IdentifierNode('Prix'), CallNode(IdentifierNode('randint'), [NumberNode(0), NumberNode(1000)])), AssignStmt(IdentifierNode('X'), UnaryOpNode(NumberNode(1), '-')), AssignStmt(IdentifierNode('Essais'), NumberNode(0)), WhileStmt(BinOpNode(IdentifierNode('X'), IdentifierNode('Prix'), '!='), [InputStmt(IdentifierNode('X'), None, False), IfStmt(BinOpNode(IdentifierNode('X'), IdentifierNode('Prix'), '<'), [DisplayStmt(StringNode(' '), True), DisplayStmt(StringNode("C'est trop bas !!"), True), DisplayStmt(StringNode(' '), True)]), ElseStmt([DisplayStmt(StringNode(' '), True), DisplayStmt(StringNode("C'est trop haut !"), True), DisplayStmt(StringNode(' '), True)]), AssignStmt(IdentifierNode('Essais'), BinOpNode(IdentifierNode('Essais'), NumberNode(1), '+'))]), DisplayStmt(BinOpNode(BinOpNode(StringNode("C'est gagné WAY WAY WAY, en "), IdentifierNode('Essais'), '+'), StringNode(' essais !'), '+'), True)])
|