From 31b8cc23c9084e4699e827c417a25ded13f98749 Mon Sep 17 00:00:00 2001 From: NikkiCyber <161043023+muskanBP@users.noreply.github.com> Date: Thu, 17 Apr 2025 15:03:37 +0500 Subject: [PATCH] Update Agentic_AI_Python_Lesson_02_Data_Types.ipynb Code ka idea sahi hai, lekin syntax mein thoda error hai, especially is line mein: if(id(shark1_age)id(shark2_age) == ): # incorrect syntax Isko correct karne ke liye == operator ko sahi jagah lagana hoga. Aap id() ke values compare kar rahe ho, toh sahi syntax hoga: if id(shark1_age) == id(shark2_age): # comparison by id --- .../Agentic_AI_Python_Lesson_02_Data_Types.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/00_python_colab/02_data_types/Agentic_AI_Python_Lesson_02_Data_Types.ipynb b/00_python_colab/02_data_types/Agentic_AI_Python_Lesson_02_Data_Types.ipynb index 6a55ba1..0487f7c 100644 --- a/00_python_colab/02_data_types/Agentic_AI_Python_Lesson_02_Data_Types.ipynb +++ b/00_python_colab/02_data_types/Agentic_AI_Python_Lesson_02_Data_Types.ipynb @@ -1176,7 +1176,7 @@ "\n", "print(\" ===================== \")\n", "\n", - "if(id(shark1_age)id(shark2_age) == ):#comparison by id()\n", + "if(id(shark1_age) == id(shark2_age)):#comparison by id()\n", " print(\"shark1_age & shark2_age have same id\")\n", "else:\n", " print(\"shark1_age & shark2_age have different id\")" @@ -1405,4 +1405,4 @@ ] } ] -} \ No newline at end of file +}