RP’s Blog on AI

Connect with RP- https://www.linkedin.com/in/ratnakarpandey/

Skip to content
  • Gen AI
  • Natural Language Processing (NLP)
  • Conventional ML
    • Python Based Data Science
    • R Based Data Science
    • Problem Solving and Domain
    • Problem Solving
    • Domain Knowledge
    • Quizzes
  • About
    • Pictures and Memories
    • Questions/Comments
    • About
Search

Assignment

Assignment and Augmented Assignment in Python

October 18, 2017May 16, 2021 / RP / 2 Comments

Here are few examples on how you can do assignment and augmented assignment in Python. Augmented assignment is assignment and certain operations, such as addition, exponentiation,  combined into one. This is a great tool in saving the length of the codes.

Augmented_Assignment

Here is the output from above codes

 

Augmented_Assignment2

Capture

Cheers!

Share this:

  • Tweet
Like Loading...
  • Subscribe Subscribed
    RP’s Blog on AI
    Join 227 other subscribers

    Have a WordPress.com account? Log in now.

  • RP’s Blog on AI
    View site in Reader
    Manage subscriptionsSign upLog in
    Report this content
    Collapse this bar
Loading Comments...

You must be logged in to post a comment.

%d