Skip to content

Update Agentic_AI_Python_Lesson_02_Data_Types.ipynb#13

Open
muskanBP wants to merge 1 commit intopanaversity:mainfrom
muskanBP:patch-1
Open

Update Agentic_AI_Python_Lesson_02_Data_Types.ipynb#13
muskanBP wants to merge 1 commit intopanaversity:mainfrom
muskanBP:patch-1

Conversation

@muskanBP
Copy link
Copy Markdown

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

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
@muskanBP
Copy link
Copy Markdown
Author

Assalamualaikum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant