From 20dbfada1d4e0c104a2c5fae3668b42ec83048ec Mon Sep 17 00:00:00 2001 From: j Date: Fri, 31 Mar 2023 03:42:02 +0200 Subject: [PATCH] Update page 'Day 2 homework' --- Day 2 homework.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Day 2 homework.md b/Day 2 homework.md index 1cfd268..d6cc0de 100644 --- a/Day 2 homework.md +++ b/Day 2 homework.md @@ -8,7 +8,7 @@ * s = "abcdefg" 2. For each of the types string, bytestring, integer, floating point, and imaginary literals, construct a 5x5 table showing what happens when the character "0" or number 0 is compared to each other type. -3. Now do the same thing for the + and == operators for each pair of types two other 5x5 tables. +3. Now do the same thing for the + and == operators for each pair of types in two other 5x5 tables. 4. Write a small program that uses the AST module to open the lexer/parser example, and dumps the resulting AST. See if there are any arguments to the parse method which make the output easier to read. 5. What does this do? `print("\007")` Can you figure out why? 6. What does this do? `print("abcdefg\rhijklmnop")` Can you figure out why?