Skip to content

Update Agentic_AI_Python_Lesson_02_Data_Types.ipynb #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

muskanBP
Copy link

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
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