1. Deep Learning Yoshua Bengio, 2015 2. Deep Learning with Python François Chollet, 2017 3. Deep Learning: A Practitioner's Approach Josh Patterson, 2017 4. Deep Learning from Scratch: Building with Python from First Principles Seth Weidman, 2019 5. Grokking Deep Learning Andrew W. Trask, 2019 6. Deep Learning for Coders with Fastai and PyTorch Jeremy Howard, 2020 7. Neural Networks and Deep Learning 2017 8. Hands-On Machine Learning with Scikit-Learn and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems Geron Aurelien, 2017 9. Neural Networks and Deep Learning: A Textbook Charu C. Aggarwal, 2018 10. Learning Deep Learning: Theory and Practice of Neural Networks, Computer Vision, Natural Language Processing, and Transformers Using TensorFlow Magnus Ekman, 2021 11. Fundamentals of Deep Learning: Designing Next-Generation Machine Intelligence Algorithms Nikhil Buduma, 2017 12. Deep Learning with R François Chollet, 2018 13. Grokking Deep Reinforcement Learning Miguel Morales, 2020 14. The Hundred-page Machine Learning Book Andriy Burkov, 2019 15. Artificial Intelligence By Example: Acquire Advanced AI, Machine Learning, and Deep Learning Design Skills, 2nd Edition Denis Rothman, 2020 16. Hands-On Deep Learning Algorithms with Python: Master Deep Learning Algorithms with Extensive Math by Implementing Them Using TensorFlow Sudharsan Ravichandiran, 2019 17. Fundamentals of Deep Learning Nikhil Buduma, 2022 18. Deep Learning Illustrated: A Visual, Interactive Guide to Artificial Intelligence Jon Krohn, 2019 19. Deep Learning Cookbook: Practical Recipes to Get Started Quickly Douwe Osinga, 2018 20. Deep Learning John D. Kelleher, 2019 21. Deep Learning for Vision Systems Mohamed Elgendy, 2020 22. Generative Deep Learning: Teaching Machines to Paint, Write, Compose, and Play David Foster, 2019 23. Deep Learning: A Visual Approach Andrew Glassner, 2021 24. Deep Learning with Python, Second Edition François Chollet, 2021 25. Deep Learning with R, Second Edition Joseph J. Allaire, 2022 26. Deep Learning in Computer Vision: Principles and Applications 2020 27. TinyML: Machine Learning with TensorFlow Lite on Arduino and Ultra-Low-Power Microcontrollers Daniel Situnayake, 2019 28. GANs in Action: Deep Learning with Generative Adversarial Networks Vladimir Bok, 2019 29. Grokking Artificial Intelligence Algorithms Rishal Hurbans, 2020 30. Dive Into Deep Learning Zachary Lipton, 2023 31. Inside Deep Learning: Math, Algorithms, Models Edward Raff, 2022 32. Math for Deep Learning: What You Need to Know to Understand Neural Networks Ronald T Kneusel, 2021 33. Evolutionary Deep Learning: Genetic Algorithms and Neural Networks Micheal Lanham, 2023 34. Understanding Machine Learning: From Theory to Algorithms Shai Shalev-Shwartz, 2014 35. Deep Learning with PyTorch Thomas Viehmann, 2020 36. Python Machine Learning: Machine Learning and Deep Learning with Python, Scikit-learn, and TensorFlow 2 Sebastian Raschka, 2019 37. TensorFlow Machine Learning Cookbook Nick McClure, 2017 38. The Master Algorithm: How the Quest for the Ultimate Learning Machine Will Remake Our World Pedro Domingos, 2015 39. Deep Learning with TensorFlow and Keras: Build and Deploy Supervised, Unsupervised, Deep, and Reinforcement Learning Models Sujit Pal, 2022 40. Machine Learning - A Journey To Deep Learning: With Exercises And Answers Andreas Miroslaus Wichert, 2021 41. Hands-on Machine Learning with JavaScript: Solve Complex Computational Web Problems Using Machine Learning Burak Kanber, 2018 42. Introduction to Machine Learning with Python: A Guide for Data Scientists Sarah Guido, 2016 43. Python Machine Learning Sebastian Raschka, 2015 44. Artificial Intelligence for Humans Jeff Heaton, 2013 45. Machine Learning for Absolute Beginners: A Plain English Introduction Oliver Theobald, 2017 46. Practical Deep Learning for Cloud, Mobile, and Edge: Real-World AI & Computer-Vision Projects Using Python, Keras & TensorFlow Anirudh Koul, 2019 47. Introduction to Deep Learning: From Logical Calculus to Artificial Intelligence Sandro Skansi, 2018 48. Deep Learning: Methods and Applications Dong Yu, 2014 49. Machine Learning with Python Cookbook: Practical Solutions from Preprocessing to Deep Learning Chris Albon, 2018 50. Advanced Deep Learning with TensorFlow 2 and Keras: Apply DL, GANs, VAEs, Deep RL, Unsupervised Learning, Object Detection and Segmentation, and More, 2nd Edition Rowel Atienza, 2020 51. An Introduction to Statistical Learning: With Applications in R Trevor Hastie, 2013 52. Deep Learning. Foundations and Concepts Christopher M. Bishop, Hugh Bishop Springer (2023)
Tuesday, October 24, 2023
Deep Learning Books (Oct 2023)
Download Books
Books on Freelancing (Oct 2023)
Download Books
1. The Freelancer's Bible: Everything You Need to Know to Have the Career of Your Dreams—On Your Terms Sara Horowitz, 2012 2. The 4-Hour Workweek Tim Ferriss, 2007 3. My So-Called Freelance Life Michelle Goodman, 2008 4. Rework David Heinemeier Hansson, 2010 5. Cash Money Freelancing: 76 Bright Ideas to Make More Money from Your Freelance Business Tom Albrighton, 2020 6. Stop Thinking Like a Freelancer: The Evolution of a $1m Web Designer Liam Veitch, 2014 7. Creative, Inc.: The Ultimate Guide to Running a Successful Freelance Business Meg Mateo Ilasco, 2010 8. The $100 Startup Chris Guillebeau, 2012 9. Company of One: Why Staying Small is the Next Big Thing for Business Paul Jarvis, 2019 10. The Freelance Introvert: Work the Way You Want Without Changing who You are Tom Albrighton, 2020 11. Pyjama Profit: The Millennial's Guide to a Sustainable Freelance Career Varun Mayya, 2018 12. The Money Book for Freelancers, Part-Timers, and the Self-Employed: The Only Personal Finance System for People with Not-So-Regular Jobs Joseph D'Agnese, 2010 13. The Freelance Way: Best Business Practices, Tools and Strategies for Freelancers Robert Vlach, 2019 14. Brilliant Freelancer: Discover The Power Of Your Own Success Leif Kendall, 2011 15. Survival Skills for Freelancers: Tried and Tested Tips to Help You Ace Self-Employment Without Burnout Sarah Townsend, 2020 16. The Wealthy Freelancer: 12 Secrets to a Great Income and an Enviable Lifestyle Steve Slaunwhite, 2010 17. Getting Things Done David Allen, 2001 18. Book Yourself Solid Michael Port, 2006 19. Falling Off The Ladder: Revamp Your Mindset and Thrive in Self-employment Helen Hill, 2021 20. The Freelancing Handbook Kesava Belletty, 2020 21. The LinkedIn Blackbook: An actionable guide to getting clients, launching a successful freelancing journey, and building a standout LinkedIn profile that will give long term results. 2020 22. Value-Based Fees: How to Charge - and Get - What You're Worth Alan Weiss, 2002 23. This Year Will Be Different: The Insightful Guide to Becoming a Freelancer Monika Kanokova, 2015 24. Champagne and Wax Crayons: Riding the Madness of the Creative Industries Ben Tallon, 2015 25. Copywriting Made Simple: How to Write Powerful and Persuasive Copy that Sells Tom Albrighton, 2018 26. Anti-Sell: Marketing, Lead Generation and Networking Tips for Freelancers Who Hate Sales Steve Morgan, 2019 27. Making Your Website Work: 100 Copy & Design Tweaks for Smart Business Owners Gill Andrews, 2019 28. Six-figure freelancing Kelly James-Enger, 2005 29. Get Clients Now! A 28-day Marketing Program for Professionals, Consultants, and Coaches C. J. Hayden, 1999 30. The 10 Things I Wish I Knew Before I Started Freelancing: What Nobody Else Has Told You David R. Rodriguez, 2018 31. The Well-fed Writer: Financial Self-sufficiency as a Freelance Writer in Six Months Or Less Peter Bowerman, 2000 32. The Human Freelancer: A Guide to Happy and Honest Self-employment for Conscientious Newcomers Chris Kenworthy, 2014 33. Ego Is the Enemy Ryan Holiday, 2016 34. Freelance Like a Pro: 21 Lessons on Finding Work, Landing Clients, and Earning More As a Freelancer Roshan Perera, 2018 35. How to Start Freelancing as a Business Analyst: A Practical Guide to Start and Succeed as a Freelance Business Analyst Diwakar Kumar Singh, 2022 36. How to win friends and influence people. How to stop worrying and start living Dale Carnegie, 1936 37. The Six-Figure Freelancer: Your Roadmap to Success in the Gig Economy Laura Briggs, 2020 38. The 7 Habits of Highly Effective People Stephen Covey, 1989 39. Freelance, and Business, and Stuff: A Guide for Creatives Jennifer Hood, 2018 40. The Essential Guide to Freelance Writing: How to Write, Work, and Thrive on Your Own Terms Zachary Petit, 2015 41. Freelance Your Way to Freedom: How to Free Yourself from the Corporate World and Build the Life of Your Dreams Alexandra Fasulo, 2022 42. Craft, Inc. Meg Mateo Ilasco, 2007 43. The Anti 9 to 5 Guide: Practical Career Advice for Women Who Think Outside the Cube Michelle Goodman, 2007 44. The Complete Freelancer Guide: Become Your Own Boss, Do what You Love, and Make Money Doing it Ian Balina, 2017 45. The Creative Professional's Guide to Money: How to Think About It, How to Talk About It, How to Manage It Ilise Benun, 2011 46. Student Freelancing 101: A Start-To-Finish Course to Becoming a Student Freelancer Amber Leigh Turner, 2012 47. Start & Run a Copywriting Business Steve Slaunwhite, 2000 48. Money-Smart Solopreneur: A Personal Finance System for Freelancers, Entrepreneurs, and Side-Hustlers Laura D. Adams, 2020 49. Start Your Own Freelance Writing Business: The Complete Guide to Starting and Scaling from Scratch Inc, 2019 50. The Freelance Content Marketing Writer: Find Your Perfect Clients, Make Tons of Money and Build a Business You Love Jennifer Goforth Gregory, 2018 51. Guide to Becoming a Freelance Writer: Use Freelancing Websites to Source Content Writing Jobs and Make Money from Home! Rhea Gaur, 2017Tags: List of Books,Management,Investment,
Sunday, October 22, 2023
Ashwagandha
Overview Ashwagandha is an evergreen shrub that grows in Asia and Africa. It is commonly used for stress. There is little evidence for its use as an "adaptogen." Adaptogens are plants and mushrooms that help your body respond to stress, anxiety, fatigue and overall wellbeing. You can take adaptogens by adding them to food or beverages or take them as tinctures. Adaptogens bring your body back to a steady balance by managing both physical and mental stressors. Ashwagandha contains chemicals that might help calm the brain, reduce swelling, lower blood pressure, and alter the immune system. Since ashwagandha is traditionally used as an adaptogen, it is used for many conditions related to stress. Adaptogens are believed to help the body resist physical and mental stress. Some of the conditions it is used for include insomnia, aging, anxiety and many others, but there is no good scientific evidence to support most of these uses. There is also no good evidence to support using ashwagandha for COVID-19. Don't confuse ashwagandha with Physalis alkekengi. Both are known as winter cherry. Also, don't confuse ashwagandha with American ginseng, Panax ginseng, or eleuthero. --- Uses & Effectiveness Possibly Effective for A type of persistent anxiety marked by exaggerated worry and tension (generalized anxiety disorder or GAD). Taking ashwagandha by mouth seems to improve anxiety in people with persistent anxiety. Insomnia. Taking ashwagandha by mouth seems to improve overall sleep and sleep quality in some people. Stress. Taking ashwagandha by mouth seems to help reduce stress in some people. It might also help reduce stress-related weight gain. There is interest in using ashwagandha for a number of other purposes, but there isn't enough reliable information to say whether it might be helpful. --- Side Effects When taken by mouth: Ashwagandha is possibly safe when used for up to 3 months. The long-term safety of ashwagandha is not known. Large doses of ashwagandha might cause stomach upset, diarrhea, and vomiting. Rarely, liver problems, including severe liver failure and a need for liver transplantation, might occur. When applied to the skin: Lotion containing ashwagandha is possibly safe when used for up to 2 months. Special Precautions and Warnings When taken by mouth: Ashwagandha is possibly safe when used for up to 3 months. The long-term safety of ashwagandha is not known. Large doses of ashwagandha might cause stomach upset, diarrhea, and vomiting. Rarely, liver problems, including severe liver failure and a need for liver transplantation, might occur. When applied to the skin: Lotion containing ashwagandha is possibly safe when used for up to 2 months. Pregnancy: It is likely unsafe to use ashwagandha when pregnant. There is some evidence that ashwagandha might cause miscarriages. Breast-feeding: There isn't enough reliable information to know if ashwagandha is safe to use when breast-feeding. Stay on the safe side and avoid use.Tags: Medicine,Ayurveda,Interactions
Moderate Interaction Be cautious with this combination Medications that decrease the immune system (Immunosuppressants) interacts with ASHWAGANDHA Ashwagandha can increase the activity of the immune system. Some medications, such as those used after a transplant, decrease the activity of the immune system. Taking ashwagandha along with these medications might decrease the effects of these medications. Sedative medications (Benzodiazepines) interacts with ASHWAGANDHA Ashwagandha might cause sleepiness and slowed breathing. Some medications, called sedatives, can also cause sleepiness and slowed breathing. Taking ashwagandha with sedative medications might cause breathing problems and/or too much sleepiness. Sedative medications (CNS depressants) interacts with ASHWAGANDHA Ashwagandha might cause sleepiness and slowed breathing. Some medications, called sedatives, can also cause sleepiness and slowed breathing. Taking ashwagandha with sedative medications might cause breathing problems and/or too much sleepiness. Thyroid hormone interacts with ASHWAGANDHA The body naturally produces thyroid hormones. Ashwagandha might increase how much thyroid hormone the body produces. Taking ashwagandha with thyroid hormone pills might cause too much thyroid hormone in the body, and increase the effects and side effects of thyroid hormone. Medications for diabetes (Antidiabetes drugs) interacts with ASHWAGANDHA Ashwagandha might lower blood sugar levels. Taking ashwagandha along with diabetes medications might cause blood sugar to drop too low. Monitor your blood sugar closely. Medications for high blood pressure (Antihypertensive drugs) interacts with ASHWAGANDHA Ashwagandha might lower blood pressure. Taking ashwagandha along with medications that lower blood pressure might cause blood pressure to go too low. Monitor your blood pressure closely.Dosing
Ashwagandha has most often been used by adults in doses up to 1000 mg daily, for up to 12 weeks. Speak with a healthcare provider to find out what dose might be best for a specific condition. Ref: WebMD
Shankhpushpi (Syrup by Dabur)
Dabur Shankhpushpi Syrup is an Ayurvedic formulation that can help improve learning and concentration. It can be beneficial for reducing mental fatigue. Key Ingredients in Dabur Formulation 1. Shankhpushpi (Convolvulus pluricaulis, PL.) 2. Brahmi (Hydrocotyle asiatica, PL.) 3. Nimbu Satva (Citrus limon, Satva) 4. Sharkara 5. Water 6. Preservatives: Sodium methylparaben I.P., Sodium propylparaben I.P. Ingredients in Baidyanath formulation Each 5 ml contains: # Shankha Pushpi (125 mg) # Brahmi (3 mg) Indications # Improving learning and concentration # Reducing mental fatigue Indications Suggested by Baidyanath 1. Promotoes concentration 2. Improves grasping power 3. Improves memory 4. Keeps you alert and sharp Key Benefits The syrup can help improve learning and concentration It may aid in minimising mental fatigue It can improve overall health and well-being Ref: 1mg.comTags: Medicine,Ayurveda,
Chlorzoxazone (Salt)
Chlorzoxazone is used to relax certain muscles in your body and relieve the discomfort caused by acute (short-term), painful muscle or bone conditions. However, this medicine does not take the place of rest, exercise, physical therapy, or other treatments that your doctor may recommend for your medical condition. Chlorzoxazone is a skeletal muscle relaxant. It acts on the central nervous system (CNS) to relax muscles. Ref: mayoclinic --- Chlorzoxazone (INN) is a centrally acting muscle relaxant used to treat muscle spasm and the resulting pain or discomfort. It can also be administered for acute pain in general and for tension headache (muscle contraction headache). It acts on the spinal cord by depressing reflexes. It is sold under the brand names Lorzone, Paraflex and Muscol and in combination form as Parafon Forte, a combination of chlorzoxazone and acetaminophen (paracetamol). Possible side effects include dizziness, lightheadedness, malaise, nausea, vomiting, and liver dysfunction. Used with acetaminophen it has added risk of hepatotoxicity. It is available as a generic medication. Like metaxalone, its mechanism of action is still in question. It is believed that metaxalone works by altering serotonin levels and acting as a mild MAO inhibitor. The mechanism of action of chlorzoxazone is thought to act on Gaba-A & B receptors and voltage-gated calcium channels to a degree. General central nervous system depression is the only currently accepted aspect to its medical benefits. Elucidation of the exact mechanism of action is ongoing but there is limited study due to the existence of more effective, safe muscle relaxants (ex. diazepam, cyclobenzaprine, tizanidine), greatly limiting the potential benefit of identifying novel compounds which share chlorzoxazone's mechanism of action.Tags: Medicine,
Aldigesic P Tablet
Manufacturer Alkem Laboratories Ltd SALT COMPOSITION Aceclofenac (100mg) + Paracetamol (325mg) Aldigesic P 100mg/325mg Tablet is a pain-relieving medicine. It is used to reduce pain and inflammation in conditions like rheumatoid arthritis, ankylosing spondylitis, and osteoarthritis. It may also be used to relieve muscle pain, back pain, toothache, or pain in the ear and throat. Aldigesic P 100mg/325mg Tablet should be taken with or without food. You should take it regularly as advised by your doctor. Your doctor may change the dose and time between doses according to your pain level and your needs. Do not take more or use it for a longer duration than recommended by your doctor. Some of the common side effects of this medicine include nausea, vomiting, stomach pain, loss of appetite, heartburn, and diarrhea. If any of these side effects bother you or do not go away with time, you should let your doctor know. Your doctor may help you with ways to reduce or prevent these side effects by prescribing an alternative medicine or adjusting the dose. Aldigesic P 100mg/325mg Tablet may not be suitable for everybody. Before taking it, let your doctor know if you have any problems with your heart, kidneys, liver, or have stomach ulcers. To make sure it is safe for you, let your doctor know about all the other medicines you are taking. Pregnant and breastfeeding mothers should first consult their doctors before using Aldigesic P 100mg/325mg Tablet. Uses of Aldigesic P Tablet Pain relief Benefits of Aldigesic P Tablet # In Pain relief Aldigesic P 100mg/325mg Tablet is used for short-term relief of pain, inflammation, and swelling in conditions that affect joints and muscles. Some of the conditions in which Aldigesic P 100mg/325mg Tablet is used are rheumatoid arthritis, osteoarthritis, muscle pain, back pain, toothache, or pain in the ear and throat. Take it as it is prescribed to get the most benefit. Do not take more or longer than needed as that can be dangerous. In general, you should take the lowest dose that works, for the shortest possible time. This will help you to go about your daily activities more easily and have a better, more active, quality of life. How Aldigesic P Tablet works Aldigesic P 100mg/325mg Tablet is a combination of two medicines: Aceclofenac and Paracetamol. These medicines work by blocking the action of chemical messengers responsible for pain, fever and inflammation (redness and swelling).Tags: Medicine,
Lupiflex 4 Tablet
Lupiflex 4 Tablet Manufacturer Lupin Ltd SALT COMPOSITION Ketoprofen (50mg) + Thiocolchicoside (4mg) Product introduction Lupiflex 4 Tablet is a combination of two medicines used in the treatment of pain due to muscle spasm. It improves the movement of muscles and provide relief from pain and discomfort associated with muscle spasms. Lupiflex 4 Tablet should be taken with food. This will prevent you from getting an upset stomach. You should take it regularly as advised by your doctor. Do not take more or use it for longer duration than recommended by your doctor. Some of the common side effects of this medicine include nausea, indigestion, heartburn, and stomach pain. If any of these side effects bother you or do not go away with time, you should let your doctor know. Your doctor may help with ways to reduce or prevent these side effects. The medicine may not be suitable for everybody. Before taking it, let your doctor know if you have any problems with your heart, kidneys, and liver. To make sure it is safe for you, let your doctor also know all the other medicines you are taking. Pregnant and breastfeeding mothers should first consult their doctors before using the medicine. Uses of Lupiflex Tablet Pain due to muscle spasm Benefits of Lupiflex Tablet In Pain due to muscle spasm Lupiflex 4 Tablet treats pain due to muscle spasm by relaxing stiff muscles. It also reduces swelling in the muscles. Altogether, it helps in easy movement and reduces discomfort. Once you see some improvement, you can start doing therapy exercises (such as walking or breathing exercises) that will help you get your strength back more quickly. Side effects of Lupiflex Tablet Most side effects do not require any medical attention and disappear as your body adjusts to the medicine. Consult your doctor if they persist or if you’re worried about them # Nausea # Indigestion # Heartburn # Stomach pain How Lupiflex Tablet works Lupiflex 4 Tablet is a combination of two medicines: Ketoprofen and Thiocolchicoside which relieve pain and relax the muscles. Ketoprofen is a non-steroidal anti-inflammatory drug (NSAID) which works by blocking the release of certain chemical messengers that cause pain and inflammation (redness and swelling). Thiocolchicoside is a muscle relaxant. It works by acting on the centers in the brain and spinal cord to relieve muscle stiffness or spasm and to improve pain and movement of muscles. Fact Box Habit Forming: No Therapeutic Class: PAIN ANALGESICSTags: Medicine,
Lubrifresh Eye Drop
Lubrifresh Eye Drop Manufacturer Sapient Laboratories Pvt Ltd SALT COMPOSITION Carboxymethylcellulose (0.5% w/v) + Oxychloro Complex (0.005% w/v) Product Information Lubrifresh Eye Drop is a prescription medicine used to treat symptoms of dry eyes. It lubricates the eyes helps in maintaining the moisture of the eyes. This way it provides temporary relief from burning and discomfort caused by dry eyes. It also reduces redness and swelling of the eye. Lubrifresh Eye Drop is to be used only in the affected eye. Use it in the dose and duration as advised by the doctor. Read the label carefully for instruction before you use the medicine. Wash your hands before using this medicine. Do not use too much or too little. Use it in the exact dose as prescribed by the doctor or as instructed in the label. Use of this medicine may cause burning sensation, stinging, and irritation at the application site. These are usually temporary and resolve with time. However, if they persist or get worse, inform your doctor. In case of accidental contact with your ears, nose, or mouth, immediately rinse it with water. Inform your doctor if you have a known allergy to any of the ingredients in this medicine or if you are taking any other medication. It is advised not to drive or operate heavy machinery immediately after using this medicine as it may cause temporary blurring of vision and may affect your ability to drive. Uses of Lubrifresh Eye Drop Treatment of Dry eyes Benefits of Lubrifresh Eye Drop # In Treatment of Dry eyes Dry eyes is a condition in which your eyes do not produce enough tears to keep them moist. It can be caused by sitting in front of the computer for a long time, certain medications or environmental conditions. Lubrifresh Eye Drop adds moisture to your eyes and keeps them lubricated. This gives relief from burning sensation and discomfort due to dryness of the eyes. If you wear soft contact lenses, you should remove them before applying Lubrifresh Eye Drop. Side effects of Lubrifresh Eye Drop Most side effects do not require any medical attention and disappear as your body adjusts to the medicine. Consult your doctor if they persist or if you’re worried about them # Application site reactions (burning, irritation, itching and redness) # Blurred vision How Lubrifresh Eye Drop works Lubrifresh Eye Drop is a combination of two medicines: Carboxymethylcellulose and Oxychloro Complex. Carboxymethylcellulose is a lubricating medicine similar to natural tears. It provides temporary relief of burning and discomfort due to dryness of the eye. Oxychloro Complex is a preservative.Tags: Medicine,
Monday, October 16, 2023
Sunday, October 15, 2023
Python Modules
Python Modules
- Simply a module is a library of code ( Python Code file with extention .py )
- It’s contains set of functions you want to include in your applications
- # For Ex – Saving following code in a file with name as mymodule.py
- Use of an existing module in another python program...
def greeting(name): print("Hello," + name)
# For Ex – Save following code in file with name UseOfExistingModule.py import mymodule # importing an existing module mymodule.greeting("Jonathan") # Calling of specific function
modulename.functionname
Use of variables in modules
- A module can contain any type of variable
- Variable type can be : String , Array , List , Set , Tuple , Dictionary etc
# For Ex - Save following code in the file as mymodule.py
person = { "name":"John", "age": 36, "country:"Norway" }
# Using above module in another program as follow
import mymodule a = mymodule.person["age"] # Accessing age property of person1 Dict. print(a)
Output Will be : 36
Naming And Python Modules
# You can give any name to the module file but it must have the file extension .py # You can create an alias when you import a module, by using the as keyword # For Ex – Create an alias for mymodule called mx
import mymodule as mx a = mx.person1["age"] # Use of alias name to call a module function print(a)
Output will be : 36
# Using Built-In Modules : you can use built in module by importing them # For Ex – Import and use the platform built in module
import platform # platform is a built in module x = platform.system() # Calling a function of built in module print(x) # This will print name of running OS on system
Output will be : Windows ( In Case of Windows OS )
Use the dir() Function
- This is a built in function
- It is used to list out all the function / variables defined in a module
# For Ex – List out all the functions and variables in platform module
import platform x = dir(platform) # Passing module name to list out its contents print(x) # To display contents
Output will be like this : ['DEV_NULL', '_UNIXCONFDIR', 'WIN32_CLIENT_RELEASES', ‘ WIN32_SERVER_RELEASES', '__builtins__', '__cached__', '__copyright__', Note *: dir() function can be use to list out contents of built in and user defined modules
Use of Import From Module Statement
- You can import a specific part of the module using the from key word
# For Ex – First Define a module as follow and save as mymodule.py # This module define a function and a dictionary
def greeting(name): print("Hello," + name) person1 = { "name":"John", "age": 36, "country":"Norway" }
# Now importing only dictionary as follow in another program
from mymodule import person1 # importing person named dictionary only print (person1["age"]) # Note: No use of module name to access dictionary
Output Will be : 36
DateTime in Python
#There is no date data type in python #To deal with date and time you need to use DateTime built in module of python # For Ex - Current date can be displayed as follow
import datetime as dt # importing the module # Note below: datetime represent constructor of datetime class x = dt.datetime.now() print(x)
Output will be in following format: 2023-05-25 16:02:23.115559 Note*: It contains year, month, day, hour, minute, second, and microsecond
DateTime module methods
# There are many methods to give information about date object # For Ex – Getting the year and name of weekday using current date object
import datetime as dt x = dt.datetime.now() # To get current date object print(x.year) # To display year print(x.strftime("%A")) # To display day name
Output will be like: 2023 Thursday
Creating Date Objects
# You can create a date object using datetime class constructor of the datetime module # And you have to pass three parameters values: year, month and day in constructor # The datetime() class also takes parameters for time and timezone (i.e : hour, minute, second, microsecond, tzone), but they are optional, and has a default value of 0, (None for timezone) # For Ex – Creating a date object
import datetime x = datetime.datetime(2020, 5, 17) print(x)
Output will be: 2020-05-17 00:00:00
The strftime() Method
# This method is used for formatting date objects into readable strings. # It takes one parameter, format, to specify the format of the returned string # For Ex – Displaying the name of the month
import datetime x = datetime.datetime(2018, 6, 1) # Creating a specific date object print(x.strftime("%B")) # Getting month information from date object
Output will be: June
# Few Examples of format code to be pass in strftime() method :
Tags: Technology,Python,Questions on The Concept of Random Variables From Statistics and Probability (From Khan Academy)
Tags: Technology,Mathematical Foundations for Data Science,1: Random variables
1.1: Constructing probability distributions
Question 1: Question 2:1.2: Probability models
Question 3:2: Probability with discrete random variables
Question 4:3: Combining random variables
Question 5: Question 6:4: Identifying binomial variables
Four Conditions of Binomial Variable
1. There are fixed number of trials. 2. Each trial results in a success of failure. 3. A trial is independent of other trials. 4. Probability of success remains constant over time. Question 7: Question 8: Question 9:5: Binomial probability formula
Question 10: Question 11: Question 12:6: Calculating binomial probability
Question 13: Question 14:7: Binomial vs. geometric random variables
Question 15: Question 16: Question 17: Question 18:8: Geometric probability
Question 19:9: Cumulative geometric probability
Question 20: Question 21: Question 22: Question 23:
Subscribe to:
Posts (Atom)