From 834ee49878339a761e3fe34e75d192702c32b820 Mon Sep 17 00:00:00 2001 From: Eshaan Date: Fri, 11 Nov 2022 20:30:37 +0530 Subject: [PATCH 1/2] Fixed Issue#2190Now the Homepage code sample doesn't have syntax error --- codesamples/factories.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codesamples/factories.py b/codesamples/factories.py index 49a60730f..184c1312d 100644 --- a/codesamples/factories.py +++ b/codesamples/factories.py @@ -27,7 +27,7 @@ def initial_data(): ( """\
# Simple output (with Unicode)
-            >>> print(\"Hello, I'm Python!\")
+            >>> print("Hello, I'm Python!")
             Hello, I'm Python!
 
             # Input, assignment

From 083f5e46b819b42febc41b54ec97c6328bddd112 Mon Sep 17 00:00:00 2001
From: Eshaan 
Date: Sat, 12 Nov 2022 10:08:49 +0530
Subject: [PATCH 2/2] Another minor typo in the next line

---
 codesamples/factories.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/codesamples/factories.py b/codesamples/factories.py
index 184c1312d..5a52b9738 100644
--- a/codesamples/factories.py
+++ b/codesamples/factories.py
@@ -31,7 +31,7 @@ def initial_data():
             Hello, I'm Python!
 
             # Input, assignment
-            >>> name = input('What is your name?\\n')
+            >>> name = input('What is your name?\n')
             What is your name?
             Python
             >>> print(f'Hi, {name}.')




pFad - Phonifier reborn



Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy