• R2021 SYLLABUS
  • R2017 SYLLABUS
  • R2013 SYLLABUS
  • R2021, R2017, R2013 UG / PG SYLLABUS
  • Civil 1st Sem R2021
  • Civil 2nd Sem R2021
  • Civil 3rd Sem R2021
  • Civil 4th Sem R2021
  • CIVIL 1st SEM R2017
  • CIVIL 2nd SEM R2017
  • CIVIL 3rd SEM R2017
  • CIVIL 4TH SEM R2017
  • CIVIL 5TH SEM R2017
  • CIVIL 6TH SEM R2017
  • THIRD SEMESTER
  • FOURTH SEMESTER
  • FIFTH SEMESTER
  • SIXTH SEMESTER
  • SEVENTH SEMESTER
  • EIGHTH SEMESTER
  • ARCHITECTURE BOOKS
  • BUILDING MATERIALS BOOKS
  • BUILDING DESIGN BOOKS
  • FLUID MECHANICS BOOKS
  • MECHANICS OF MATERIALS BOOKS
  • SURVEYING BOOKS
  • STRUCTURAL ANALYSIS BOOKS
  • SOIL MECHANICS BOOKS
  • CONCRETE TECH BOOKS
  • HIGHWAY ENGINEERING BOOKS
  • CONSTRUCTION TECHNOLOGY BOOKS
  • FOUNDATION ENGINEERING BOOKS
  • GEOGRAPHIC ENGINEERING BOOKS
  • TUNNEL CONSTRUCTION BOOKS
  • CIVIL GATE NOTES COLLECTION
  • CIVIL IS-CODE BOOKS
  • CIVIL PROJECT COLLECTION
  • MOCK TEST FOR PRACTICE
  • CSE 1st Sem R2021
  • CSE 2nd Sem R2021
  • CSE 3rd Sem R2021
  • CSE 4th Sem R2021
  • CSE 1st SEM R2017
  • CSE 2nd SEM R2017
  • CSE 3rd SEM R2017
  • CSE 4th SEM R2017
  • CSE 5th SEM R2017
  • CSE 6th SEM R2017
  • ALGORITHM BOOKS
  • ANDROID BOOKS
  • COMPILER DESIGN BOOKS
  • COMPUTER ORGANISATION & ARCHITECTURE BOOKS
  • PROGRAMMING BOOKS
  • NETWORKS BOOKS
  • DATA BASE BOOKS
  • DIGITAL SIGNAL PROCESSING BOOKS
  • HACKING BOOKS
  • OPERATING SYSTEM BOOKS
  • SOFTWARE ENGINEERING BOOKS
  • NETWORK SECURITY BOOKS
  • THEORY OF COMPUTATION & COMMUNICATION BOOKS
  • COMPUTER CODE BOOKS
  • CSE GATE NOTES COLLECTION
  • CSE PROJECT COLLECTION
  • EEE 1st Sem R2021
  • EEE 2nd Sem R2021
  • EEE 3rd Sem R2021
  • EEE 4th Sem R2021
  • EEE 1st SEM R2017
  • EEE 2nd SEM R2017
  • EEE 3rd SEM R2017
  • EEE 4th SEM R2017
  • EEE 5th SEM R2017
  • EEE 6th SEM R2017
  • EEE EIGHTH SEMESTER
  • ELECTRICAL WIRING BOOKS
  • ELECTRICAL MEASUREMENT BOOKS
  • ELECTRICAL DRIVE BOOKS
  • HIGH VOLTAGE ENGINEERING BOOKS
  • POWER SUPPLY ENGINEERING BOOKS
  • POWER PLANT ENGINEERING BOOKS
  • RENEWABLE ENERGY BOOKS
  • ENERGY ENGINEERING BOOKS
  • TRANSFORMER BOOKS
  • WIND ENERGY BOOKS
  • EEE GATE NOTES COLLECTION
  • EEE PROJECT COLLECTION
  • ECE 1st Sem R2021
  • ECE 2nd Sem R2021
  • ECE 3rd Sem R2021
  • ECE 4th Sem R2021
  • ECE 1st SEM R2017
  • ECE 2nd SEM R2017
  • ECE 3rd SEM R2017
  • ECE 4th SEM R2017
  • ECE 5th SEM R2017
  • ECE 6th SEM R2017
  • AMPLIFIER BOOKS
  • POWER ELECTRONICS BOOKS
  • ELECTRONIC DEVICE BOOKS
  • OPTO ELECTRONICS BOOKS
  • MICRO CONTROLLER BOOKS
  • IMAGE PROCESSING BOOKS
  • WIRELESS TRANSMISSION BOOKS
  • MICROWAVE BOOKS COLLECTION
  • RADIO FREQUENCY BOOKS
  • MECHATRONICS BOOKS
  • ECE GATE NOTES COLLECTION
  • ECE PROJECT COLLECTION
  • Mech 1st Sem R2021
  • Mech 2nd Sem R2021
  • MECH 3rd Sem R2021
  • MECH 4th Sem R2021
  • MECH 1st SEM R2017
  • MECH 2nd SEM R2017
  • MECH 3rd SEM R2017
  • MECH 4th SEM R2017
  • MECH 5th SEM R2017
  • MECH 6th SEM R2017
  • CAD/CAM/CIM BOOKS
  • MACHINE DESIGN BOOKS
  • MANUFACTURING TECHNOLOGY BOOKS
  • PRODUCTION TECHNOLOGY BOOKS
  • VIBRATION BOOKS
  • STRENGTH OF MATERIALS BOOKS
  • MECHANICAL DESIGN BOOKS
  • THERMODYNAMICS BOOKS
  • HEAT AND MASS TRANSFER BOOKS
  • REFRIGERATION & A.C. BOOKS
  • MECHANICAL DRAWING BOOKS
  • WELDING TECHNOLOGY BOOKS
  • IC ENGINE BOOKS
  • MECH SPECIAL EXAM BOOKS
  • MECH GATE NOTES COLLECTION
  • MECH DATA BOOKS COLLECTION
  • MECH PROJECT COLLECTION
  • AERONAUTICAL MAJOR BOOKS
  • AERO SPACE BOOKS
  • AERO SPACE CRAFT BOOKS
  • AIRCRAFT BOOKS
  • AERO DYNAMICS BOOKS
  • ODD SEM LAB MANUALS
  • EVEN SEM LAB MANUALS
  • R2017 LAB MANUAL
  • IIT-JEE SYLLABUS
  • IIT-JEE QP COLLECTION
  • IIT-JEE RANK BOOSTER
  • IIT-JEE MATHS
  • IIT-JEE PHYSICS
  • IIT-JEE PHYSICS TOPIC WISE NOTES
  • IIT-JEE CHEMISTRY
  • IIT-JEE CHEMISTRY TOPIC WISE NOTES
  • GATE IES TANCET SYLLABUS
  • CIVIL GATE COLLECTION
  • CSE GATE COLLECTION
  • ECE GATE COLLECTION
  • EEE GATE COLLECTION
  • MECH GATE COLLECTION
  • IES OBJECTIVE PAPERS
  • IES SUBJECTIVE PAPERS
  • RRB EXAM COLLECTION
  • SSC EXAM COLLECTION
  • APTITUDE BOOKS
  • REASONING BOOKS
  • BANK AWARENESS BOOKS
  • ENGLISH GRAMMAR BOOKS
  • Articles For You
  • Admit Cards

LearnEngineering.in

  • First Sem R2021
  • R2021 Notes

[PDF] GE3151 Problem Solving and Python Programming (PSPP) Books, Lecture Notes, 2 marks with answers, Important Part B 16 Marks Questions, Question Bank & Syllabus

Download GE3151 Problem Solving and Python Programming (PSPP) Books Lecture Notes Syllabus Part-A 2 marks with answers GE3151 Problem Solving and Python Programming Important Part-B 16 marks Questions , PDF Books, Question Bank with answers Key, GE3151 Problem Solving and Python Programming Syllabus & Anna University GE3151 Problem Solving and Python Programming Question Papers Collection.

Students Click to Join our WhatsApp Group | Telegram Channel

Download link is provided for Students to download the Anna University GE3151 Problem Solving and Python Programming Syllabus Question Bank Lecture Notes Part A 2 marks with answers & Part B 16 marks Question Bank with answer , Anna University Question Paper Collection, All the materials are listed below for the students to make use of it and get good (maximum) marks with our study materials.

“GE3151 Problem Solving and Python Programming Notes, Lecture Notes, Previous Years Question Papers “

“GE3151 Problem Solving and Python Programming Important 16 marks Questions with Answers”

“GE3151 Problem Solving and Python Programming Important 2 marks & 16 marks Questions with Answers”

“GE3151 Problem Solving and Python Programming Important Part A & Part B Questions”

“GE3151 Problem Solving and Python Programming Syllabus, Local Author Books, Question Banks”

You all must have this kind of questions in your mind. Below article will solve this puzzle of yours. Just take a look and download the study materials for your preparation.

GE3151 Problem Solving and Python Programming (PSPP) Notes Part A & Part B Important Questions with Answers var td_screen_width = window.innerWidth; if ( td_screen_width >= 1140 ) { /* large monitors */ document.write(' Download Links '); (adsbygoogle = window.adsbygoogle || []).push({}); } if ( td_screen_width >= 1019 && td_screen_width Download Links '); (adsbygoogle = window.adsbygoogle || []).push({}); } if ( td_screen_width >= 768 && td_screen_width Download Links '); (adsbygoogle = window.adsbygoogle || []).push({}); } if ( td_screen_width Download Links '); (adsbygoogle = window.adsbygoogle || []).push({}); } .ua02d4899df2b65cfa2c8fd852d94f711 { padding:0px; margin: 0; padding-top:1em!important; padding-bottom:1em!important; width:100%; display: block; font-weight:bold; background-color:inherit; border:0!important; border-left:4px solid #2ECC71!important; text-decoration:none; } .ua02d4899df2b65cfa2c8fd852d94f711:active, .ua02d4899df2b65cfa2c8fd852d94f711:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; text-decoration:none; } .ua02d4899df2b65cfa2c8fd852d94f711 { transition: background-color 250ms; webkit-transition: background-color 250ms; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; } .ua02d4899df2b65cfa2c8fd852d94f711 .ctaText { font-weight:bold; color:#E74C3C; text-decoration:none; font-size: 16px; } .ua02d4899df2b65cfa2c8fd852d94f711 .postTitle { color:#000000; text-decoration: underline!important; font-size: 16px; } .ua02d4899df2b65cfa2c8fd852d94f711:hover .postTitle { text-decoration: underline!important; } Also Check :   [PDF] ME3491 Theory of Machines (TOM) Books, Lecture Notes, 2 marks with answers, Important Part B 16 Marks Questions, Question Bank & Syllabus var td_screen_width = window.innerWidth; if ( td_screen_width >= 1140 ) { /* large monitors */ document.write(' '); (adsbygoogle = window.adsbygoogle || []).push({}); } if ( td_screen_width >= 1019 && td_screen_width '); (adsbygoogle = window.adsbygoogle || []).push({}); } if ( td_screen_width >= 768 && td_screen_width '); (adsbygoogle = window.adsbygoogle || []).push({}); } if ( td_screen_width '); (adsbygoogle = window.adsbygoogle || []).push({}); }

GE3151 Problem Solving and Python Programming – Study Materials – Details

GE3151 Problem Solving and Python Programming (PSPP) “R2021 – SYLLABUS”

GE3151 PROBLEM SOLVING AND PYTHON PROGRAMMING

UNIT I COMPUTATIONAL THINKING AND PROBLEM SOLVING

Fundamentals of Computing – Identification of Computational Problems -Algorithms, building blocks of algorithms (statements, state, control flow, functions), notation (pseudo code, flow chart, programming language), algorithmic problem solving, simple strategies for developing algorithms (iteration, recursion). Illustrative problems: find minimum in a list, insert a card in a list of sorted cards, guess an integer number in a range, Towers of Hanoi.

UNIT II DATA TYPES, EXPRESSIONS, STATEMENTS

Python interpreter and interactive mode, debugging; values and types: int, float, boolean, string, and list; variables, expressions, statements, tuple assignment, precedence of operators, comments; Illustrative programs: exchange the values of two variables, circulate the values of n variables, distance between two points.

UNIT III CONTROL FLOW, FUNCTIONS, STRINGS

Conditionals: Boolean values and operators, conditional (if), alternative (if-else), chained conditional (if-elif-else); Iteration: state, while, for, break, continue, pass; Fruitful functions: return values, parameters, local and global scope, function composition, recursion; Strings: string slices, immutability, string functions and methods, string module; Lists as arrays. Illustrative programs: square root, gcd, exponentiation, sum an array of numbers, linear search, binary search.

UNIT IV LISTS, TUPLES, DICTIONARIES

Lists: list operations, list slices, list methods, list loop, mutability, aliasing, cloning lists, list parameters; Tuples: tuple assignment, tuple as return value; Dictionaries: operations and methods; advanced list processing – list comprehension; Illustrative programs: simple sorting, histogram, Students marks statement, Retail bill preparation.

UNIT V FILES, MODULES, PACKAGES

Files and exception: text files, reading and writing files, format operator; command line arguments, errors and exceptions, handling exceptions, modules, packages; Illustrative programs: word count, copy file, Voter’s age validation, Marks range validation (0-100).

  TEXT BOOKS:

  • Allen B. Downey, “Think Python : How to Think like a Computer Scientist”, 2nd Edition, O’Reilly Publishers, 2016.
  • Karl Beecher, “Computational Thinking: A Beginner's Guide to Problem Solving and programming”, 1st Edition, BCS Learning & Development Limited, 2017.

REFERENCES:

  • Paul Deitel and Harvey Deitel, “Python for Programmers”, Pearson Education, 1st Edition,
  • G Venkatesh and Madhavan Mukund, “Computational Thinking: A Primer for Programmers and Data Scientists”, 1st Edition, Notion Press, 2021.
  • John V Guttag, "Introduction to Computation and Programming Using Python: With Applications to Computational Modeling and Understanding Data‘‘, Third Edition, MIT Press 2021
  • Eric Matthes, “Python Crash Course, A Hands – on Project Based Introduction to Programming”, 2nd Edition, No Starch Press, 2019.
  • https://www.python.org/
  • 6. Martin C. Brown, “Python: The Complete Reference”, 4th Edition, Mc-Graw Hill,2018.

DOWNLOAD LINK

Anna University GE3151 Problem Solving and Python Programming Books Question Banks Lecture Notes Syllabus GE3151 Problem Solving and Python Programming Part A 2 Marks with Answers Part – B 16 Marks Questions with Answers & Anna University GE3151 Problem Solving and Python Programming Question Paper Collection and Local Author Books.

Click below the link “DOWNLOAD” to save the Book/Material (PDF)

Kindly Note : There are different collection of GE3151 Problem Solving and Python Programming study materials are listed below. Based on your requirement choose the suitable material for your preparation.

GE3151 Problem Solving and Python Programming Lecture Notes

Ge3151 lecture notes collection 01 – download, ge3151 lecture notes collection 02 – download, ge3151 lecture notes collection 03 – download, ge3151 lecture notes collection 04 – download, ge3151 lecture notes collection 05 – download, ge3151 problem solving and python programming unit wise 2 marks question with answers, ge3151 2 marks collection 01 – download, ge3151 2 marks collection 02 – download, ge3151 important question collection 03 – download, ge3151 important question collection 04 – download, ge3151 problem solving and python programming unit wise 2 marks, 16 marks questions with answers, ge3151 student notes collection 01 – download, ge3151 student notes collection 02 – download, ge3151 student notes collection 03 – download, ge3151 student notes collection 04 – download, ge3151 student notes collection 05 – download, ge3151 problem solving and python programming important questions & question bank collection, ge3151 questions bank collection 01 – download, ge3151 questions bank collection 02 – download, ge3151 questions bank collection 03 – download, ge3151 problem solving and python programming anna university question paper collection, ge3151 anna university question papers collection 01 – download, ge3151 anna university question papers collection 02 – download, ge3151 previous year collection  – download.

We need Your Support, Kindly Share this Web Page with Other Friends

If you have any Engg study materials with you kindly share it, It will be useful to other friends & We Will Publish The Book/Materials Submitted By You Immediately Including The Book/Materials Credits (Your Name) Soon After We Receive It (If The Book/Materials Is Not Posted Already By Us)

If You Think This Materials Is Useful, Kindly Share it .

problem solving and python programming unit 1

Click Here To Check Anna University Recent Updates.

Click here to download anna university ug/ pg regulation 2021 syllabus ., click here to check anna university results, other useful links, click here to download other semester civil engineering r2021 study material., click here to download other semester cse r2021 study material., click here to download other semester ece r2021 study material., click here to download other semester eee r2021 study material., click here to download other semester mechanical engineering r2021 study material., click here to download department wise r2017 & r2013 study materials., click here to download gate exam study materials., click here to download competitive exam (rrb & ssc) study materials., click here to download competitive exam (iit – jee exam) study materials., click here to download engineering text books (all departments) collection..

Thank you for visiting my thread. Hope this post is helpful to you. Have a great day !

Kindly share this post with your friends to make this exclusive release more useful.

Related Posts You May Also Like

Your comments about this post, leave a reply cancel reply.

Save my name, email, and website in this browser for the next time I comment.

Notify me of follow-up comments by email.

Notify me of new posts by email.

Trending Today

R K Kanodia Power Electronics Notes

[PDF] R K Kanodia Power Electronics Notes for IES IAS GATE...

All time trending.

CS8091 Big Data Analytics

[PDF] CS8091 Big Data Analytics Lecture Notes, Books, Important Part-A 2...

Get new updates email alerts.

Enter your E- Mail Address to Subscribe this Blog and Receive Notifications of New Posts by E-Mail.

problem solving and python programming unit 1

Today Updates

Electromagnetic waves (Physics) Notes for IIT-JEE Exam

[PDF] Electromagnetic waves (Physics) Notes for IIT-JEE Exam Free Download

State of Matter (Chemistry) Notes for IIT-JEE Exam

[PDF] State of Matter (Chemistry) Notes for IIT-JEE Exam Free Download

Radio Frequency Books

[PDF] Radio Frequency Books Collection Free Download

problem solving and python programming unit 1

[PDF] S K Mondal’s Internal Combustion Engine Notes for IES IAS...

J & P Transformer Book By Martin Heathcote

[PDF] J & P Transformer Book By Martin Heathcote Free Download

Methods of Work and Energy (Physics) Notes for IIT-JEE Exam

[PDF] Methods of Work and Energy (Physics) Notes for IIT-JEE Exam...

16th Edition IEE Wiring Regulations: Explained & Illustrated By Brian Scaddan

[PDF] 16th Edition IEE Wiring Regulations: Explained & Illustrated By Brian...

Popular files.

ME8791 Mechatronics

[PDF] ME8791 Mechatronics Lecture Notes, Books, Important Part-A 2 Marks Questions...

ME3392 Engineering Materials and Metallurgy

[PDF] ME3392 Engineering Materials and Metallurgy (EMM) Books, Lecture Notes, 2...

CE8005 Air Pollution and Control Engineering

CE8005 Air Pollution and Control Engineering Lecture Notes, Books, Important Part-A...

problem solving and python programming unit 1

[PDF] EC8353 Electron Devices and Circuits Lecture Notes, Books, Important Part-A...

ME3492 Hydraulics and Pneumatics

[PDF] ME3492 Hydraulics and Pneumatics (HAP) Books, Lecture Notes, 2 marks...

problem solving and python programming unit 1

[PDF] CE8404 Concrete Technology Lecture Notes, Books, Important Part-A 2 Marks...

Trending on learnengineering.in.

Periodic Table (Chemistry) Notes for IIT-JEE Exam

[PDF] Periodic Table (Chemistry) Notes for IIT-JEE Exam Free Download

Descriptive English By K.Kundan

[PDF] Descriptive English By K.Kundan for Bank Exam Free Download

Ray Optics (Physics) Notes for IIT-JEE Exam

[PDF] Ray Optics (Physics) Notes for IIT-JEE Exam Free Download

Atomic Structure (Chemistry) Notes for IIT-JEE Exam

[PDF] Atomic Structure (Chemistry) Notes for IIT-JEE Exam Free Download

Current Electricity (Physics) Notes for IIT-JEE Exam

[PDF] Current Electricity (Physics) Notes for IIT-JEE Exam Free Download

Diffraction of Light (Physics) Notes for IIT-JEE Exam

[PDF] Diffraction of Light (Physics) Notes for IIT-JEE Exam Free Download

Fundamentals of Electricity

[PDF] Fundamentals of Electricity By wecc Free Download

Sponsored by.

Website Designed and Maintained by LearnEngineering Network | Website CDN by   MaxCDN   |   Website Security by   Sucuri .

Check your Email after Joining and Confirm your mail id to get updates alerts.

...Join Now...

[PDF] GE3151 Problem Solving and Python Programming (PSPP) Books, Lecture Notes, 2marks with answers, Important Part B 16marks Questions, Question Bank & Syllabus

Easyengineering whatsapp group

Download GE3151 Problem Solving and Python Programming (PSPP) Books Lecture Notes Syllabus Part A 2 marks with answers GE3151 Problem Solving and Python Programming (PSPP) Important Part B 16 Mark Questions , PDF Books, Question Bank with answers Key, GE3151 Problem Solving and Python Programming (PSPP) Syllabus, Local Author Books & Anna University GE3151 Problem Solving and Python Programming (PSPP) Question Papers Collection, GE3151 First Semester Anna University Regulation 2021 Study Materials (Notes).

Many collections of GE3151 study materials download links are provided below, each collection is different from other so try to read all the GE3151 study materials collections and choose the suitable one, which is easily understandable for your preparations. From the listed below links, the students & the lectures can download the Anna University GE3151 Problem Solving and Python Programming (PSPP) Syllabus Question bank Lecture Notes Part A 2 marks with answers Part B 16 marks Question Bank with an answer , Previous year Question Papers and all other important materials of GE3151 subject. The students to make use of it and score good (maximum) marks in the exams with our study materials.

“GE3151 Problem Solving and Python Programming (PSPP) Notes, Lecture Notes, Previous Years Question Papers”

“GE3151 Problem Solving and Python Programming (PSPP) Important 16 marks Questions with Answers”

“GE3151 Problem Solving and Python Programming (PSPP) Important 2 marks Questions with Answers”

“GE3151 Problem Solving and Python Programming (PSPP) Important Part A & Part B Questions”

“GE3151 Problem Solving and Python Programming (PSPP) Important Multiple Choice Questions (MCQs)”

“GE3151 Problem Solving and Python Programming (PSPP) Syllabus, Local Author Books, Question Banks”

You all must have this kind of questions in your mind. The below article will solve this puzzle of yours. Just take a look and download the study materials.

GE3151 Problem Solving and Python Programming (PSPP) Part A & Part B Important Questions with Answers

GE3151 Problem Solving and Python Programming (PSPP)

  • 1.1 GE3151 Problem Solving and Python Programming (PSPP) Syllabus
  • 1.2 Download Link
  • 1.3 GE3151 Problem Solving and Python Programming (PSPP) Syllabus
  • 1.4 GE3151 Problem Solving and Python Programming (PSPP) Lecture Notes
  • 1.5 GE3151 Problem Solving and Python Programming (PSPP) unit wise 2 marks Questions with Answers
  • 1.6 GE3151 Problem Solving and Python Programming (PSPP) unit wise 16 marks Questions with answers
  • 1.7 GE3151 Problem Solving and Python Programming (PSPP) Important Questions
  • 1.8 GE3151 Problem Solving and Python Programming (PSPP) Question Papers Collections
  • 1.9 GE3151 Problem Solving and Python Programming (PSPP) Question Bank
  • 1.10 Anna University Useful Links
  • 1.11 Other Useful Links
  • 1.12 GE3151 Problem Solving and Python Programming (PSPP) – FAQ

GE3151 Problem Solving and Python Programming (PSPP) Notes – Details

GE3151 Problem Solving and Python Programming (PSPP) Syllabus

UNIT I COMPUTATIONAL THINKING AND PROBLEM SOLVING

Fundamentals of Computing – Identification of Computational Problems -Algorithms, building blocks of algorithms (statements, state, control flow, functions), notation (pseudo code, flow chart, programming language), algorithmic problem solving, simple strategies for developing algorithms (iteration, recursion). Illustrative problems: find minimum in a list, insert a card in a list of sorted cards, guess an integer number in a range, Towers of Hanoi.

UNIT II DATA TYPES, EXPRESSIONS, STATEMENTS

Python interpreter and interactive mode, debugging; values and types: int, float, boolean, string, and list; variables, expressions, statements, tuple assignment, precedence of operators, comments; Illustrative programs: exchange the values of two variables, circulate the values of n variables, distance between two points.

UNIT III CONTROL FLOW, FUNCTIONS, STRINGS

Conditionals: Boolean values and operators, conditional (if), alternative (if-else), chained conditional (if-elif-else); Iteration: state, while, for, break, continue, pass; Fruitful functions: return values, parameters, local and global scope, function composition, recursion; Strings: string slices, immutability, string functions and methods, string module; Lists as arrays. Illustrative programs: square root, gcd, exponentiation, sum an array of numbers, linear search, binary search.

UNIT IV LISTS, TUPLES, DICTIONARIES

Lists: list operations, list slices, list methods, list loop, mutability, aliasing, cloning lists, list parameters; Tuples: tuple assignment, tuple as return value; Dictionaries: operations and methods; advanced list processing – list comprehension; Illustrative programs: simple sorting, histogram, Students marks statement, Retail bill preparation.

UNIT V FILES, MODULES, PACKAGES

Files and exception: text files, reading and writing files, format operator; command line arguments, errors and exceptions, handling exceptions, modules, packages; Illustrative programs: word count, copy file, Voter’s age validation, Marks range validation (0-100).

Download Link

Anna University GE3151 Problem Solving and Python Programming (PSPP) Books Question banks Lecture Notes Syllabus GE3151 Problem Solving and Python Programming (PSPP) Part A 2 marks with answers Part B 16 marks Questions with answers & Anna University GE3151 Problem Solving and Python Programming (PSPP) Question Papers Collection and Local Author Books.

Click below the link “DOWNLOAD” to save the Study Material (PDF)

Kindly Note: They different collections of GE3151 Problem Solving and Python Programming (PSPP) Study materials are listed below. Each collection is different from others, Based on the candidate’s (your) knowledge & requirement choose the suitable material for your preparations.

  • Regulation 2021 GE3151 Problem Solving and Python Programming (PSPP) Syllabus – DOWNLOAD

GE3151 Problem Solving and Python Programming (PSPP) Lecture Notes

  • Lecture Notes Collections 1 – DOWNLOAD  
  • Lecture Notes Collections 2 – DOWNLOAD (Including 2marks)
  • Lecture Notes Collections 3 – DOWNLOAD   (Including 2marks)
  • Lecture Notes Collections 4 – DOWNLOAD
  • Lecture Notes Collections 5 – DOWNLOAD
  • Lecture Notes Collections 6 – DOWNLOAD (Including 2marks)
  • Lecture Notes Collections 7 – DOWNLOAD   (Including 2marks)

GE3151 Problem Solving and Python Programming (PSPP) unit wise 2 marks Questions with Answers

  • 2 MARKS Collection 2 – DOWNLOAD (Refer Part B also)
  • 2 MARKS Collection 2 – DOWNLOAD
  • 2 MARKS Collection 3 – DOWNLOAD
  • 2 MARKS Collection 4 – DOWNLOAD

GE3151 Problem Solving and Python Programming (PSPP) unit wise 16 marks Questions with answers

  • Student Notes Collections 1 – DOWNLOAD  
  • Student Notes Collections 2 – DOWNLOAD (Including 2marks)
  • Student Notes Collections 3 – DOWNLOAD (Including 2marks)
  • Student Notes Collections 4 – DOWNLOAD
  • Student Notes Collections 5 – DOWNLOAD
  • Student Notes Collections 6 – DOWNLOAD (Including 2marks)
  • Student Notes Collections 7 – DOWNLOAD (Including 2marks)

GE3151 Problem Solving and Python Programming (PSPP) Important Questions

Important Questions Collection 1 – DOWNLOAD

  • Important Questions Collection 2 – DOWNLOAD
  • Important Questions Collection 3 – DOWNLOAD
  • Important Questions Collection 4 – DOWNLOAD

GE3151 Problem Solving and Python Programming (PSPP) Question Papers Collections

  • Last 5 Years Anna University Question Papers Collection – DOWNLOAD

GE3151 Problem Solving and Python Programming (PSPP) Question Bank

  • Collection 1 – DOWNLOAD
  • Collection 2 – DOWNLOAD
  • Collection 3 – DOWNLOAD
  • Collection 4 – DOWNLOAD
  • Collection 5 – DOWNLOAD
  • Collection 6 – DOWNLOAD
  • Collection 7 – DOWNLOAD
  • Collection 8 – DOWNLOAD
  • Collection 9 – DOWNLOAD
  • Collection 10 – DOWNLOAD
  • Collection 11 – DOWNLOAD
  • Collection 12 – DOWNLOAD
  • Collection 13 – DOWNLOAD

Anna University Useful Links

  • Click Here To Check the Anna University Internal Marks Details
  • Click Here To Download the Anna University Time Table for Current Semester (Odd & Even) UG/PG Exams
  • Click Here To Download the Anna University Practical Schedule for Current Semester (Odd & Even) UG/PG Exams
  • Click Here To Download the Anna University Syllabus for UG/PG Regulation 2021 (R2021)
  • Click Here To Download the Anna University Syllabus for UG/PG Regulation 2017 (R2017)
  • Click Here To Download the Anna University Syllabus for UG/PG Regulation 2013 (R2013)
  • Click Here To Check & Download the Anna University Current Semester Reopening Date as well as Last Working Day (Closing Date) Notification
  • Click Here To Check the Anna University Current Semester Results as well as grace marks details

Other Useful Links

  • Click Here To Download Other Semester Civil Engineering Regulation 2021 Study Materials
  • Click Here To Download Other Semester Mechanical Engineering Regulation 2021 Study Materials
  • Click Here To Download Other Semester Electrical Engineering Regulation 2021 Study Materials
  • Click Here To Download Other Semester Electronics & Communication Engineering Regulation 2021 Study Materials
  • Click Here To Download Regulation 2017 Semester wise Civil, Mechanical, Electrical, Electronics & Communication Engineering Study Materials
  • Click Here To Download Regulation 2013 Semester wise Civil, Mechanical, Electrical, Electronics & Communication Engineering Study Materials
  • Click Here To Download Civil Engineering GATE UPSC IES TANCET PSU’s State PSC & Other Competitive Examinations Study Materials
  • Click Here To Download Mechanical Engineering GATE UPSC IES TANCET PSU’s State PSC & Other Competitive Examinations Study Materials
  • Click Here To Download Electrical Engineering GATE UPSC IES TANCET PSU’s State PSC & Other Competitive Examinations Study Materials
  • Click Here To Download Electronics & Communication Engineering GATE UPSC IES TANCET PSU’s State PSC & Other Competitive Examinations Study Materials
  • Click Here To Download Subjects Civil Engineering (CE) Textbooks Huge Collection
  • Click Here To Download Subjects Mechanical Engineering (ME) Textbooks Huge Collection
  • Click Here To Download Subjects Electrical Engineering (EE) Textbooks Huge Collection
  • Click Here To Download Subjects Electronics & Communication Engineering (ECE) Textbooks Huge Collection
  • Click Here To Download Competitive Exams Books & Study Materials
  • Click Here To Download Other Departments Study Materials

We Need Your Support, Kindly Share this Web Page with Other Friends

If you have any Engg study materials with you kindly share it, It will be useful to other friends & We Will Publish The Book/Materials Submitted By You Immediately Including The Book/Materials Credits (Your Name) Soon After We Receive It (If The Book/Materials Is Not Posted Already By Us)

Submit Your Books/Study Materials

If You Think these Materials Is Useful, Kindly Share it .

Thank you for visiting my thread. Hope this post is helpful to you. Have a great day!

Kindly share this post with your friends to make this exclusive release more useful.

GE3151 Problem Solving and Python Programming (PSPP) – FAQ

What is the Full Form of the Subject Code GE3151?

The Full Form of Subject Code GE3151 is Problem Solving and Python Programming (PSPP) .

How to Download GE3151 Notes?

The students can download the GE3151 Problem Solving and Python Programming (PSPP) Part-A 2 marks , Part-B 16 marks questions with answers (Notes) on the EasyEngineering website for preparing their upcoming First Semester examination.

Where to Download GE3151 Local Author Book PDF?

On the EasyEngineering GE3151 Problem Solving and Python Programming (PSPP) page, the students can download the Local Author Book PDF , which contains unit wise Part-A 2 marks, Part-B 16 marks important questions with answers.

How to Download Previous Years GE3151 Question Papers?

The Anna University students can download the GE3151 Problem Solving and Python Programming (PSPP) Previous Years Question Papers Collection on the GE3151 Question Papers Page, which contains the last 5 years question papers sets (GE3151 Question Bank) for the students to prepare for their upcoming First Semester examination.

In which regulation semester exam GE3151 subject is studied?

The GE3151 Problem Solving and Python Programming (PSPP) subject is studied by the Anna University Students of First Year in their First Semester Examination of 2021 Regulation .

How to download GE3151 Part-A 2 Mark Questions with Answers?

On the EasyEngineering website, the students can download the GE3151 Problem Solving and Python Programming (PSPP) Part-A 2 mark Questions with answers. These GE3151 notes are useful for those candidates who are preparing for their upcoming First Semester examination of Anna University.

How to download GE3151 Part-B 16 Mark Questions with Answers?

The students can download the GE3151 Problem Solving and Python Programming (PSPP) Part-B 16 mark Questions with answers on the EasyEngineering webpage for preparing their upcoming Anna University First Semester examination.

How to download Anna University GE3151 syllabus?

The GE3151 Problem Solving and Python Programming (PSPP) Syllabus is directly downloaded from the Anna University Regulation 2021 Syllabus page on the EasyEngineering.

How to check Anna University GE3151 Internal Marks?

The GE3151 Problem Solving and Python Programming (PSPP) Anna University Internal marks can be check by the students from the official portal of Anna University ( coe1.annauniv.edu ) . The steps to check the Anna University Internal marks are clearly explained in the EasyEngineering Anna University Internal Mark checking page.

How to check Anna University GE3151 exam results?

The GE3151 Problem Solving and Python Programming (PSPP) Anna University semester examination results can be check by the students from the official result checking pages/portals (i.e., aucoe.annauniv.edu or coe1.annauniv.edu ). Also, In the EasyEngineering website the Results checking page are available to check the Anna University current semester examination results quickly.

How to check Anna University GE3151 Grace marks details?

In the Easyengineering GE3151 Problem Solving and Python Programming (PSPP) page contains the grace mark details to notify the students to know about the grace marks provided by Anna University for the invalid or out of portions/syllabus questions asked in the current First Semester GE3151 exam.

Which Engineering department is studying the GE3151 as one subject?

The GE3151 Problem Solving and Python Programming (PSPP) subject is studied by the Anna University First Year students of Common For all departments such us Civil Engineering (CE), Mechanical Engineering (ME), Electrical and Electronics Engineering (EEE), Electronics and Communication Engineering (ECE), Electronics and Instrumentation Engineering (EIE), Computer Science Engineering (CSE), Aeronautical Engineering, Automobile Engineering & Other departments as one subject in their First Semester examination.

Related Posts You May Also Like

Your comments about this post, leave a reply cancel reply.

Save my name, email, and website in this browser for the next time I comment.

Notify me of follow-up comments by email.

Notify me of new posts by email.

Today Updates

Higher Engineering Mathematics By B.S. Grewal - Free Download PDF

[PDF] Higher Engineering Mathematics By B.S. Grewal Book Free Download

How to Delete All Blank Columns in Microsoft Excel

How to Delete All Blank Columns in Microsoft Excel

ME8793 Process Planning and Cost Estimation (PPCE)

[PDF] ME8793 Process Planning and Cost Estimation (PPCE) Books, Lecture Notes,...

ME8792 Power Plant Engineering (PPE)

[PDF] ME8792 Power Plant Engineering (PPE) Books, Lecture Notes, 2marks with...

ME8791 Mechatronics

[PDF] ME8791 Mechatronics Books, Lecture Notes, 2marks with answers, Important Part...

ME8099 Robotics

[PDF] ME8099 Robotics Books, Lecture Notes, 2marks with answers, Important Part...

ME8097 Non Destructive Testing and Evaluation (NDTE)

[PDF] ME8097 Non Destructive Testing and Evaluation (NDTE) Books, Lecture Notes,...

Popular files.

Lucent's General Knowledge By Dr. Binay Karna, R. P. Suman, Manvendra Mukul, Renu Sinha, Sanjeev Kumar – PDF Free Download

[PDF] Lucent’s General Knowledge [English & Hindi] By Dr. Binay Karna,...

Civil Engineering Books (Subject wise)  Huge Collections – PDF Free Download

[PDF] Civil Engineering Books Huge Collections (Subject wise) Free Download

RRB Assistant Loco Pilot (ALP) Exam Papers with Key

[PDF] RRB Assistant Loco Pilot (ALP) Exam Papers with Key (Solutions)...

[PDF] Rakesh Yadav Chapterwise Questions with Detailed Solutions 7300+ Objective Questions (Full Book) Free Download

[PDF] Rakesh Yadav SSC Mathematics Chapterwise Questions with Detailed Solutions 7300+...

A Textbook Of Fluid Mechanics And Hydraulic Machines By Bansal

[PDF] A Textbook Of Fluid Mechanics And Hydraulic Machines (Full Book)...

GE3171 Problem Solving and Python Programming Laboratory Manual (Lab Manual)

[PDF] GE3171 Problem Solving and Python Programming Laboratory Manual (Lab Manual)

Objective Electrical Technology By V.K Mehta,‎ Rohit Mehta

[PDF] Objective Electrical Technology By V.K Mehta,‎ Rohit Mehta Book Free...

Trending on easyengineering.net.

problem solving and python programming unit 1

[PDF] Applied Chemistry and Chemical Engineering, Volume 1: Mathematical and Analytical...

EC8094 Satellite Communication (SC)

[PDF] EC8094 Satellite Communication (SC) Books, Lecture Notes, 2marks with answers,...

Mba second semester (2nd) previous year question papers, question bank collections.

problem solving and python programming unit 1

[PDF] EC8452 Electronic Circuits II (EC-II) Books, Lecture Notes, 2 marks...

Electrical Machines Handwritten Study Materials (Notes) for GATE IES PSUs & GOVT Exams

[PDF] Electrical Machines Handwritten Study Materials (Notes) For GATE IES PSUs...

problem solving and python programming unit 1

[PDF] Fluid Mechanics with Engineering Applications By Robert L Daugherty, Joseph...

problem solving and python programming unit 1

[PDF] CE8391 Construction Materials (CM) Books, Lecture Notes, 2 marks with...

Microwave Devices and Circuits By Liao

[PDF] Microwave Devices and Circuits By Samuel Y. Liao Book Free...

Get new updates email alerts, trending today.

problem solving and python programming unit 1

CS6201 Digital Principles and System Design, Question bank , Notes Syllabus...

problem solving and python programming unit 1

Regulation 2013 Local Author & National Author Books for Water Resources...

Sponsored by.

problem solving and python programming unit 1

Website Designed and Maintained by EasyEngineering Network | Website CDN by   MaxCDN   |   Website Security by   Sucuri .

Email Alerts

Follow us for instant alerts.

problem solving and python programming unit 1

  • Privacy policy
  • User Content Policy
  • Report Problems/Bug/Abuse
  • Anna University Results

CE6021 Repair and Rehabilitation of Structures Question bank , Notes Syllabus...

🌟 Looking for your next career move? Join our Telegram Jobs Update Group! 🚀

Today Jobs Update | Govt. Jobs Update

Stay ahead in your job search with real-time updates on the latest job openings across various industries. Whether you're a seasoned professional or just starting, our group is your go-to resource for job opportunities. Get instant notifications, valuable insights, and a supportive community eager to help you succeed. Don't miss out on your dream job – hit that join button and supercharge your career journey with us! 💼📈

Join our Telegram Group & Share your contents, doubts, knowledge with other Students/Graduates 

Join our Telegram Group

  • TEACH ON PADEEPZ

Padeepz

PROBLEM SOLVING AND PYTHON PROGRAMMING - GE8151

GE8151 – PROBLEM SOLVING AND PYTHON PROGRAMMING – PSPP – SYLLABUS (REGULATION 2017) ANNA UNIVERSITY  UNIT I ALGORITHMIC PROBLEM SOLVING (GE8151) …

problem solving and python programming unit 1

GE8151 – PROBLEM SOLVING AND PYTHON PROGRAMMING – PSPP  – SYLLABUS (REGULATION 2017) ANNA UNIVERSITY 

Unit i algorithmic problem solving.

(GE8151) Algorithms, building blocks of algorithms (statements, state, control flow, functions), notation (pseudo code, flow chart, programming language), algorithmic problem solving, simple strategies for developing algorithms (iteration, recursion). Illustrative problems: find minimum in a list, insert a card in a list of sorted cards, guess an integer number in a range, Towers of Hanoi.

UNIT II DATA, EXPRESSIONS, STATEMENTS 

Python interpreter and interactive mode; values and types: int, float, boolean, string, and list; variables, expressions, statements, tuple assignment, precedence of operators, comments; modules and functions, function definition and use, flow of execution, parameters and arguments; Illustrative programs: exchange the values of two variables, circulate the values of n variables, distance between two points.

UNIT III CONTROL FLOW, FUNCTIONS 

Conditionals: Boolean values and operators, conditional (if), alternative (if-else), chained conditional (if-elif-else); Iteration: state, while, for, break, continue, pass; Fruitful functions: return values, parameters, local and global scope, function composition, recursion; Strings: string slices, immutability, string functions and methods, string module; Lists as arrays. Illustrative programs: square root, gcd, exponentiation, sum an array of numbers, linear search, binary search.

UNIT IV LISTS, TUPLES, DICTIONARIES 

Lists: list operations, list slices, list methods, list loop, mutability, aliasing, cloning lists, list parameters; Tuples: tuple assignment, tuple as return value; Dictionaries: operations and methods; advanced list processing – list comprehension; Illustrative programs: selection sort, insertion sort, mergesort, histogram.

UNIT V FILES, MODULES, PACKAGES 

Files and exception: text files, reading and writing files, format operator; command line arguments, errors and exceptions, handling exceptions, modules, packages; Illustrative programs: word count, copy file.

CLICK HERE  TO DOWNLOAD THE SYLLABUS OF (GE8151).

Course curriculum.

' src=

Popular Courses

problem solving and python programming unit 1

CIRCUIT THEORY - EE6201

problem solving and python programming unit 1

ENGINEERING MATHEMATICS 2 - MA6251

problem solving and python programming unit 1

BASIC CIVIL AND MECHANICAL ENGINEERING - GE6251

problem solving and python programming unit 1

ENGINEERING MATHEMATICS 1 - MA6151

problem solving and python programming unit 1

MECHANICS OF SOLIDS - CE6302 - ( MOS )

Https://d1wf78o3idxpf0.cloudfront.net/wp-content/uploads/2020/04/28233126/padeepz-white-logo.png.

  • All Courses
  • Privacy policy
  • terms and conditions
  • Refund & Cancellation 

Problem Solving and Python Programming - GE3151, GE8151

Important questions and answers, question paper download, online study material, lecturing notes, assignment, reference, wiki.

Problem Solving and Python Programming

Exam Question Papers

Question bank, problem solving and python programming, unit i: computational thinking and problem solving, unit ii: data types, expressions, statements, unit iii: control flow, functions, strings, unit iv: lists, tuples, dictionaries, unit i : algorithmic problem solving, unit ii : data expressions statements, unit iii : control flow functions, unit iv : lists tuples dictionaries, unit v : files modules packages.

Privacy Policy , Terms and Conditions , DMCA Policy and Compliant , Contact

Contact Us(Customer Care) Via Social Media

Copyright © 2018-2024 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.

1. General Python Introduction

●     So what’s Python?

●     Why do people use Python?

●     A Python history lesson

●     Advocacy news

●     What’s Python good for?

●     What’s Python not good for?

●     Python technical features

●     Python portability

So What’s Python?

“An open source, object-oriented, scripting language”

●     An “open source” software project

♦      A BDFL plus a cast of thousands

♦      Mature infrastructure: PEPs, test suite, PSF

♦      Nonproprietary: you are not held hostage by a vendor (see VB, Apple)

♦      But you are dependent on core developers —at least on the leading edge

●     An “object-oriented” language

♦      OOP is an option, but virtually required for larger projects

♦      OOP provides structure and code reuse in ways other tools do not: extendable code hierarchies

♦      But Python isn’t just OO —procedural, functional, OO

●     A “scripting” language

♦      Control language: C/C++ libs, Com, Java/.NET, Soap/XML-RPC, Corba , RIA/AJAX/ OpenStack …

♦      But Python is general purpose —not just for shell tools or simple programs

♦      Easier to use : typically 1/3 ~ 1/4 as much code as Java, C++ (syntax, typing, built-ins, libs)

► General purpose

► Tactical or strategic

► Stand alone or embedded

► Very high-level, dynamic

A more complete definition…

Python is a powerful, general-purpose, multi-paradigm programming language that blends procedural, functional, and object-oriented tools; is optimized for programmer productivity, code readability, and software quality; and is widely used in both scripting and stand-alone development roles.

Python is also generally considered to be one of the top 5 or 10 most widely-used programming languages today (depending on which source one cites, and when it is cited).   Click these links for a few recent popularity metrics: Redmonk , Tiobe , PyPL .

Why Do People Use Python?

Software Quality

► Readable syntax: maintainable

► Coherent design, small set of interactions

► Simple enough to remember

► Art versus Engineering → maintenance, reuse

“You can do everything in Python that you can do in Perl, but you can read your code after you do it.”

Developer Productivity

► Smaller programs, flexible code (“agile”)

► Rapid turnaround, code reuse

► Both tactical and strategic roles

► Good in both boom and bust times

And other reasons…

► Program portability: portable system tools, …

► Component integration: reuse of libs, customization, …

► Vast application libraries: everything under the sun (but creates dependencies)

► Open source: no vendor tie-in (but still dependent on developers’ whims)

Some Quotable Quotes (and some rebuttals)

■     “Python looks like it was designed, not accumulated.”

Though it’s gotten busier in recent years

■     “It bridges the gap between scripting languages and C.”

Though it’s grown more complex in recent years

■     “It’s as easy or as powerful as you want it to be.”

Though nontrivial software is never easy

■     “Python: less filling, tastes great. :-)”

Though it’s now 3-paradigms, 2-versions, feature-rich

■     “Python comes with batteries included.”

Though batteries can also be your weakest link

■     “Python fits your brain.”

Though it depends on your brain…

About expectations…

Over the years, Python’s ease of use contributed to the rise of the “ anyone can code ” paradigm (e.g., code.org ), which may be fashionable and encouraging to newcomers, but is also a bit misleading.   In truth, Python still does make programming much simpler than tools like Java and C++—per its original message.   But:

●        Python has grown noticeably more complex in recent years.

●        You shouldn’t underestimate the challenge of programming in general: it’s not easy, even for those who have mastered it.

●        Both amateur and professional software developers still need to be able to understand the entire software “stack” —from Python, to C, to chips—when things go awry.

Things can and do fail both at and below the scripting layer, and their resolution often requires full-stack knowledge of anyone writing code.   Despite the cut-and-paste mindset fostered by open source, reliance on third-party code (a.k.a. “batteries”) doesn’t remove this requirement—it aggravates it.   By adding dependencies on other programmers, you also sign up for dealing with any changes and bugs in their code.

Moreover, programs don’t leave the realm of the trivial until they grow to thousands of lines of code—a realistic scale which is orders of magnitude more demanding than most programming introductions.   For typical examples, see frigcal and mergeall , also in the class materials : programs of narrow scope that top out at 3k lines each.   Although not all Python users need to become professional programmers, even novices should expect to invest substantial time learning to work properly in any engineering field, software included.

All of which is not meant to discourage—people with a wide variety of backgrounds can and do learn to use Python well.   But please set your expectations accordingly; it will go far to minimizing the inevitable initial frustrations of newcomers.   Coding useful programs in any language is not nearly as simple as popular consensus and dubious marketing may imply!   For more on this subject, see this online arti cle .

A Python History Lesson

●     Created by Guido van Rossum in Amsterdam, 1990

♦       A Google employee for some time (then Dropbox )

♦       Google was/is largely Python code, as is YouTube

♦       Dropbox was/is mostly Python code on client+server

♦       Still Python’s BDFL, though the product of very many

♦       See Guido’s pages or search for more background

●     USENET newsgroup started in 1994

♦       comp.lang.python , www.python.org

♦       3 rd party add-ons: PyPI , google.com, web search

●     Python Software Foundation (PSF): O’Reilly, ActiveState , Google, Enthought , and many others

●     First Python books appeared Fall, 1996, over 50 available by 2003, over 200 on amazon.com by 2012

●     International following: US, Europe, Asia, Australia , etc .

●     Community: users (1M+ guesstimate; 10M on Github );   user groups (see the list );   conferences ( PyCon : 2,500 attendees by 2010s, OSCON, and alot more )

●     Named after 70s BBC comedy group “ Monty Python's Flying Circus ” ( no, really )

♦       Shrubbery , Ni! , Brian , The Spanish Inquisition

♦       On the significance of Spam …

Advocacy News

The Latest…

Python   continues to enjoy an active and vigorous community today.   It is generally considered to be one of the top 5 (or 10) most widely used programming languages in world, and is still growing in popularity by most metrics, including:

●        Conference  attendance: 2,500 or more recent PyCons

●        Book sales:  O'Reilly ,  Amazon

●        User base  success stories , quotes , and domains

●        Web presence  as tracked by the TIOBE index

●        Other web presence trackers: Redmonk , PyPL

●        Volume of open source  contributions  as measured by Ohloh.net

●        Software support and resources

●        And more: http://learning-python.com/books/about-python.html#resources

Noteworthy users

●       Web services : Google, YouTube, Dropbox

●       Animation : Industrial Light & Magic , ImageWorks , Disney, Pixar

●       Financial : JP Morgan Chase, UBS, Getco , NYSE

●       Games : Eve Online, Civilization IV

●       Hardware Testing : Intel , Cisco, Hewlett-Packard, Seagate, Qualcomm, Micron

●       Numerics : National Weather Service, Los Alamos, NASA

●       P2P downloads : BitTorrent (32M DLs, 1/3 of all inet traffic!)

●       Other : Calibre , iRobot, ESRI, NSA, IronPort , Red Hat , Jet Propulsion Lab, MIT compsci , Google App Engine, OLPC, OpenStack , Raspberry PI, …

Deployments

●       Standard CPython (coded in C)

●       IronPython for.NET/Mono (Microsoft), Python.net

●       Jython for Java JVM

●       PyPy (& Psyco ): CPython optimized for speed

●       Stackless : CPython for massive concurrency

●       Numba , Cython : optimized solutions for numeric work

●       Windows COM interface

●       Web site and cloud frameworks: Django , AppEngine , …

●       Mac OS X Cocoa integration

●       Cellphone ports: Symbiam , Android, iOS , …

●       RIAs: pyjamas (now pyjs ), Silverlight, Flex, …

Group therapy

●       Python user groups: everywhere today; see python.org user groups list and community page

●       Over 200 Python books available per amazon.com by 2012, English and other languages

●       Python.org’s quotes and success stories ; and probably thousands more: search the web…

●       Computer Programming For Everybody (CP4E), edu -sig, tutors list, Raspberry PI, Code.org

●       Commercial support, training, books; distributions: py.org, ActiveState , Enthought , standard on Linux, Mac OS X

●       Thousands: see python.org job board or search the web, Dice.com, stackoverflow , etc.

●       PyCon conference attendance increases:

♦       400-500 ’05 vs 200-300 ’04 …  

♦       to 1,000   in 2008-2010 …    

♦       to > 2,000 in 2012 Pycon

♦       2,500 in all recent PyCons

What’s Python Good For?

General purpose:

  → Almost anything computers can do

●     System programming: shell tools, test scripts

sockets , regex, POSIX calls, threads, streams

●     Graphical user interfaces

Tk , wxPython , Qt , Gtk , Swing ( Jython ), RIAs ( pyjamas / pyjs , etc.)

●     Internet scripting

CGI, email, FTP, Telnet, Jython applets, XML-RPC, SOAP, PSP, mod_Python (Apache), RIAs, Django , Twisted, etc.

●     Database programming

Persistent objects, ZODB, Oracle, Informix, Sybase, MySQL, Sqlite (standard lib), SQLObject , SQLAlchemy , …

●     Component integration

Product customization and testing, embedded scripting, system front-ends

●     Rapid Application Development

Prototype-and-migrate, fast turnaround, deliverable prototypes

●     And more specific domains: general purpose

COM (PyWin32), Numeric programming ( NumPy ), Gaming ( PyGame ), graphics (OpenGL, Blender, Maya), AI, CORBA, CAD, data mining, instrumentation, language , ...

What’s Python Not Good For?

●     Fast enough for most tasks as is

●     Most real tasks run linked-in C code

●     Exception: truly speed-critical components

●     Solution: implement in C and export to Python

●     Python is optimized for speed-of-development

●     Python is designed for multi-language systems

●     Example: Python Numeric Programming

●     JIT ( PyPy , Numba ) may also improve speed

Python Technical Features (mostly for reference)

●     No compile or link steps

Rapid development-cycle turnaround

●     No type declarations

Programs are simpler, shorter, and flexible

●     Automatic memory management

Garbage collection avoids bookkeeping code

●     High-level datatypes and operations

Fast development using built-in object types

●     Object-oriented programming

Code structuring and reuse, C++ integration

●     Extending and embedding in C

Optimization, customization, system ‘glue’

●     Classes, modules, exceptions

Modular ‘programming-in-the-large’ support

●     A simple, clear syntax and design

Readability, maintainability, ease of learning

●     Dynamic loading of C modules

Simplified extensions, smaller binary files

●     Dynamic reloading of Python modules

Programs can be modified without stopping

●     Universal ‘first-class’ object model

Fewer restrictions and special-case rules

●     Interactive, dynamic nature

Incremental testing, runtime program coding/construction

●     Access to interpreter information

Metaprogramming , introspective objects

●     Wide interpreter portability

Cross-platform systems without ports

●     Compilation to portable byte-code

Execution speed, protecting source-code

●     Built-in interfaces to external services

O/S, GUI, persistence, DBMS, regular expressions...

●     True ‘freeware’: Open Source software

May be embedded/shipped without copyright restrictions

Python Portability

●     Core Language + Standard Library

♦       Windows, Linux, Macs, Unix

Nearly all flavors

Runs in desktop mode on Windows 8

Runs as a grown-up on Windows 10

Windows XP dropped as of 3.5

♦       Assorted platforms

Java ( Jython )

.NET ( IronPython )

JavaScript ( pyjamas / pyjs )

Android (SL4A), Galaxy tablet, iOS , Raspberry PI

♦       And others, rare and nostalgic…

Cray supers, IBM mainframes, VxWorks realtime

PDAs: PalmOS , PocketPC , Zaurus

OS/2, VMS, Next, BeOS, QNX, Itanium

Amiga, AtariST

PlayStation, XBox , Gamecube

Nokia Symbian OS cellphones

Windows Mobile cellphones/PDAs

Ipods (if flashed)

●     Platform-specific Extensions

♦       COM on Windows (PyWin32 extension)

♦       Cocoa on the Mac (Standard component)

♦       Other runtime libraries: Java, .NET, Javascript

●     General Portability

♦       Bytecode is platform-neutral

♦       Portable GUIs: [ tT ] kinter , wxPython , PyQt , etc.: Windows, Linux, Macs, Unix

♦       Standard library system calls (most in module “ os ”)

On Apples and Oranges

●     But your mileage may vary

♦       Different language design goals

♦       Programmers matter too

♦       Many languages is a Good Thing

♦       Python coding can be too easy: design and brains still matter (beware the temptation to “hack”)

♦       Full-scale software development is not trivial in any language (though Python helps)

♦       Off page : hobbyists versus professionals, in Answer Me These Questions Three…

Summary: Why Python?

●     It’s object-oriented

♦        Powerful OO support

♦        But OO is an option

●     It’s free

♦        Can freely embed and ship in products

♦        Can even sell the source-code!

●     It’s portable

♦        Runs everywhere: Unix, Windows, Mac ,…

♦        Portable byte-code, portable Tkinter GUI interface

●     It’s powerful

♦        Built-in types and operations

♦        Dynamic typing, libraries, modules, garbage collection, …

●     It’s mixable

♦        Python/C, Python/C++, Python/Java, COM

●     It’s easy to use (relative to others)

♦        Fast turnaround after changes

♦        A simple language and syntax

●     It’s easy to learn (relative to others)

♦        For developers and product customers

→ Quality and   Productivity

A scripting language doesn't have to look like one

A morality tale of Perl versus Python

(The following was posted to the rec.humor.funny USENET newsgroup by L. Hastings, and is reprinted here with the original author’s permission.)

This has been percolating in the back of my mind for a while. It's a scene from The Empire Strikes Back , reinterpreted to serve a valuable moral lesson for aspiring programmers.

EXTERIOR: DAGOBAH--DAY

With Yoda strapped to his back, Luke climbs up one of the many thick vines that grow in the swamp until he reaches the Dagobah statistics lab. Panting heavily, he continues his exercises-- grepping , installing new packages, logging in as root, and writing replacements for two-year-old shell scripts in Python.

YODA:      Code!   Yes.   A programmer's strength flows from code

              maintainability .   But beware of Perl. Terse syntax... more

              than one way to do it... default variables.   The dark side of

              code maintainability are they.   Easily they flow, quick to join

              you when code you write.   If once you start down the dark

              path , forever will it dominate your destiny, consume you

              it will.

LUKE: Is Perl better than Python?

YODA:      No... no ... no .   Quicker, easier, more seductive.

LUKE: But how will I know why Python is better than Perl?

YODA:      You will know.   When your code you try to read six

        months from now.

  • Why Python?
  • The Anaconda Distribution of Python
  • Installing Anaconda on Windows
  • Installing Anaconda on MacOS
  • Installing Anaconda on Linux
  • Installing Python from Python.org
  • Review Questions

Orientation

Introduction.

Welcome to the world of problem solving with Python! This first Orientation chapter will help you get started by guiding you through the process of installing Python on your computer. By the end of this chapter, you will be able to:

Describe why Python is a useful computer language for problem solvers

Describe applications where Python is used

Detail advantages of Python over other programming languages

Know the cost of Python

Know the difference between Python and Anaconda

Install Python on your computer

Install Anaconda on your computer

Program Solve

Problem Solving and Python Programming Unit 1 Complete

Algorithmic problem solving, program (2 marks), problem-solving (2 marks), problem solving methodology (software life cycle) (8 marks), algorithm (16 marks & 8 marks)  , algorithm (2 marks), characteristics of algorithm (2 marks), qualities of algorithm (2 marks), advantage of algorithm (2 marks), disadvantage of algorithm (2 marks), building blocks of an algorithm (16 marks & 8 marks)  , building blocks of an algorithm, pseudocode (16 marks & 8 marks)  , pseudocode (2 marks), keywords used in pseudocode (2 marks), rules for writing pseudocode (2 marks), guidelines for  preparing pseudocode (2 marks), control structure used in pseudocode (16 marks & 8 marks), sequence (2 marks), selection (conditional) (2 marks), iteration (looping) (2 marks), advantage of pseudocode (2 marks), disadvantage of pseudocode (2 marks), flow chart (16 marks & 8 marks)  , flow chart (2 marks), need for flowchart (2 marks), flowchart symbols (2 marks), rules (guidelines) for drawing flowchart (2 marks), control structure used in flowchart (16 marks & 8 marks), advantage of flowchart (2 marks), disadvantage of flowchart (2 marks), difference between algorithm, flowchart and pseudo code (2 marks), programming languages (8 marks & 2 marks)  , programming language (2 marks), types of programming language (2 marks).

  • Machine language  (2 marks)

Disadvantage

  • Assembly language  (2 marks)

 Disadvantage

  • High level language  (2 marks)
  •  Compiler: (2 marks)
  •  Interpreter: (2 marks)
  • Difference between compiler and interpreter: (2 marks)

ALGORITHMIC PROBLEM SOLVING (16 marks & 8 marks)  

Simple strategies for developing an algorithm (16 marks & 8 marks), simple strategies for developing an algorithm, algorithm to find the sum of two numbers, algorithm to find biggest of two numbers, there are three selection structures in python, iteration (looping) structure, algorithm to compute and print an average of 10 numbers, illustrative problems (16 marks & 8 marks)  .

  • Find Minimum number in a list (8 marks)
  • Insert a card in a list of sorted cards (8 marks)

Problem statement

  • Guessing an integer number in a range (8 marks)

Rules to move the disk

Algorithm and pseudo code, roots of quadratic equation, pseudo code, computer (2 marks).

Electronic machine that,

  • Accepts data from the environment
  •  Processes the data by performing calculations and operations
  •  Generates output result to the environment
  • A program is a step by step series of instruction given to the computer to produce a desired output.
  • An instruction is an basic commands
  • Problem solving is the sequential process of analyzing information related to given situation and generating appropriate response options

problem solving and python programming unit 1

  • Steps involves in Problem solving,
  • Programmer understands the problem.
  • Analyze the problem to find out different way to solve it
  • Determines multiple solutions to the problem.
  • Decides and selects a single exact solution
  • Selected solution is represented in a detailed step-by-step manner
  • It is coded using suitable programming language
  • Execute the program.
  • There are seven steps in  problem solving Methodology

problem solving and python programming unit 1

  • Understand the description of the problem to solve
  • To find average of 5 numbers
  • What input data is available?
  • Is anything missing?
  • What output data I trying to produce?
  • What I am going to compute?
  • Original problem is  analyzed  and divided into many sub problems
  • sub problems are easier to solve
  • each sub problems is divided into further smaller ones
  • this fragmentation continued to achieve simple solution
  • Designing is a  process used  to develop a program
  • Algorithm: step-by-step description of the solution.
  • Flowchart: Diagrammatic representation of the solution.
  • Pseudo code: It is written for selected solution. It gives logic of the program
  • Algorithms can’t executed directly by the computer, it has to be translated into a programming languages.
  • The process of translating the algorithms into programs using programming languages is known as coding .
  • Testing means running the program.
  • Check the output results with different inputs.
  •  If the output is incorrect, modify the program to get correct results.
  • Debugging is the process of finding and correcting the errors in the program.
  •  problem definition
  • Design documents
  • History of program development
  • User manual
  • Finding and eliminating previously undetected program errors.
  • Modify the current program, often to improve its performance.
  • Adding new features to the program
  • Updating the documentation

      “ It is an ordered sequence of finite, well defined, unambiguous instruction for completing a task”

  • It is a step-by-step procedure for solving a task.
  • English like representation of the logic.
  • Unambiguous
  • Finite in number
  • For a particular task, different algorithms can be written.
  • Different algorithms differ in their requirements of time and space.

Example: To find the greatest among 3 numbers.   (8 marks)

  • Read 3 numbers A, B, C.
  • Compare A & B. If A is greater, perform step 4 else perform step 5.
  • Compare A & C. If A is greater, output “A is greatest”
  •  Else output “C is greatest”.
  •  Perform step 6.
  • Compare B & C. If B is greater, output “B is greatest”
  • Else output “C is greatest”.
  • Simple and easy to understand
  • Should be clear and unambiguous
  • It look like normal English
  • Includes finite sequence of steps in order
  • Instruction should not be repeated infinitely
  • Should covers logic of the problem
  • Desired result should be obtained at the end of the algorithm

       The following are the primary factor used to judge the quality of the algorithm

  • To execute programs, computer takes some amount of time
  • The lesser is the time required ,the better is the algorithm
  • To execute programs, computer takes some amount of memory storage
  • The lesser is the memory required ,the better is the algorithm
  • Multiple algorithm may provide suitable solution to the problem
  • Some of these may provide accurate results than other algorithm
  • Such algorithm are suitable
  • Instruction in the algorithm must be in order
  • Some instruction of an algorithm may be repeated number of times until a particular condition satisfy.
  • The designed algorithm must solve a single isolated problem.
  • So algorithms must be generalized.
  • Simple to understand
  • Step wise description of the solution
  • Easy to debug
  • Independent of programming languages
  • Using algorithm problem can be broken down into smaller pieces or steps
  • Each step of the algorithm can be easily coded into its equivalent high level language
  • Time consuming process
  • Difficult to show branching and looping statement
  • Algorithm is not computer program, rather a concept of how a program should be written
  • Algorithm can be constructed from basic building blocks
  • Instruction/statements
  • Selection (conditional)
  • Iteration(looping)
  • An effective procedure for solving a problem in a finite number of steps
  • Instruction must be in order
  • Time taken to execute all instruction of the algorithm should be finite and within a reasonable limit.
  • It specify the state or condition for program termination
  • It also specify the position in the algorithm
  • It is an order in which individual statements, instruction are evaluated
  • Control flow allow the program to make choice, change direction or repeat action
  • Instructions are executed in linear order
  • One after the other
  • Step 1: Start
  • Step 2: Read two numbers A and B
  • Step 3: Calculate sum= A + B
  • Step 4: Print the sum value
  • Step 5: Stop
  • Instructions are executed based on condition
  • If condition is true ,one path is followed
  • If condition is false, another path is followed
  • Step 3: if (A>B) then  Print ‘A’ is bigger else Print ‘B’ is bigger
  • Step 4: Stop
  • In iterative control flow, a same set of instruction executed repeatedly until it satisfy particular condition
  • Step 2: total=0, average=0
  • Step 3: for 1 to 10
  • Step 4: Read number
  • Step 5: total=total + number
  • Step 6: END for
  • Step 7: average=total/10
  • Step 8: Print average
  • Step 9: Stop
  • For complex problems, the task is divided into number of smaller sub-task during algorithm design
  • A function is a block of organized, reusable code that is used to perform single, related actions.
  • Provide better modularity for application
  • Provide high degree of code reuse
  • Step 2: Read two numbers ‘a’ & ‘b’
  • Step 3: Call addition (a, b)
  • addition (a, b)
  • Step 1: Sum= a + b
  • Step 2: return sum

              “Pseudocode is an outline of a program written in a form that can be easily converted into real programming statement”

  • Pseudo means ‘false or imitation’
  • Code means ‘instruction’
  • Pseudocode is
  • Formally styled English languages used for explaining an algorithm
  • Short hand way of describing a computer program
  • It is not based on any programming languages
  • It gives structure of the program before the actual coding
  • It is also called program design language
  • Input: INPUT, GET, READ, OBTAIN
  • Output: PRINT, DISPLAY, SHOW, OUTPUT
  • Compute: COMPUTE, CALCULATE, DETERMINE
  • Initialization: SET, INITIALIZE
  • Add one: INCREMENT

Example: Pseudocode to find the addition of three numbers.  (2 marks)

  • READ A, B, C
  • COMPUTE the sum by adding A, B, C
  • DISPLAY the sum
  • Statements should be written in English and programming language independent
  • Write one statement per line
  • Capitalize initial keywords
  • Each set of instruction must be written from top to bottom
  • End multiline structure
  • Should describe logical plan to develop a program

There are three control structures used in pseudocode, they are

  • In sequence control flow,

 Example: Pseudocode to find the sum of two numbers (2 marks)

  • READ the values of A and B
  • CALCULATE sum by adding A with B
  • PRINT the sum value

Example: Pseudocode to find biggest of two numbers (2 marks)

  • PRINT ‘A’ is bigger
  • PRINT ‘B’ is bigger

Example: Pseudocode to compute and print an average of 10 numbers (2 marks)

  • INITIALIZE total=0, average=0
  • FOR (1 to 10)
  • READ number
  • COMPUTE total =total + number
  • COMPUTE average=total/10
  • PRINT average
  • It can be written easily
  • It is compact and easy to modify
  • It can be readable
  • Easy to understand the general working of the program.
  • Gives the sketch of structure of program.
  • For writing pseudo code, programmer need not know the programming language.
  • It is not visual
  • Not get the picture of design
  • No standard rules for writing pseudocode
  • Not used to understand the flow of program control
  • Diagrammatic representation of the logic for solving a task.
  • Has boxes with lines connected.
  • Boxes represent operations.
  • Lines show the flow of control.
  • To make the logic of the program clearer in a visual form.
  • Process can be explained clearly through symbols and text in flow chart
  • Provide effective program documentation and maintenance
  • Easy to review and debug the program
  • Logic of the program is communicated in much better way than algorithm
  • Easy to understand
  • Each symbol is for a specific purpose.
  • Should have a start and end.
  • Direction of flow must be from top to bottom and left to right.
  • Relevant symbols must be used while drawing a flowchart.
  • Should be clear, neat and easy to follow
  • Only one flow line should come out from process symbol
  • Only one flow line should enter a decision symbol
  • Only one flow line is used in terminal symbol
  • For complex problem, connector symbol is used to reduce number of flow lines in flowchart.

There are three control structures used in a flowchart, they are

 Example: flowchart to find the sum of two numbers (2 marks)

problem solving and python programming unit 1

Example: flowchart to find biggest of two numbers (2 marks)

problem solving and python programming unit 1

Example: flowchart to compute and print average of 10 numbers (2 marks)

problem solving and python programming unit 1

  • Makes logic clear
  • Visual representation
  • Useful for coding
  • Appropriate documentation.
  • Act as a guide or blue print for program development
  • Remove repeated and misplaced steps
  • Increase in efficiency
  • Complex and long flowchart may run into multiple pages
  • which is difficult to understand and follow
  • difficult to modify
  • Excessive use of the connector will confuse the programmers
  • Cost of operation is high
  • Updating is not regular
  • Computer programming languages are used to communicate instruction to a computer to perform a task.
  • Programming language is like English language that can be understood by the computer through the translator of that language.
  • It is based on certain syntactic and semantic rules
  • Programming language forces the user to write very simple and exact instruction
  • Machine language
  • Assembly language
  • High level language(HLL)

Machine language   (2 marks)

  • It is native language of computer
  • It is in binary form
  • It uses only 0’s and 1’s to represent data and instruction
  • It is also called Low Level Language (LLL)
  • It is very difficult to write or read instruction in binaries

   Example:     0100   00011001

  • Instruction can executed directly by the computer
  • Fast in execution
  • Bitwise operation is possible
  • It is machine dependent
  • Not compactable
  • Difficult to write
  • Takes more time to write machine code

problem solving and python programming unit 1

Assembly language   (2 marks)

  • Instruction are written with mnemonics to simplify the program
  • Use letters instead of 0’s and 1’s to run a machine
  • The general format of an assembly instruction is

  Example:    

                    Label                     opcode         operands                   Comments

                     BEGIN                   ADD               A, B                    ADD B to A

  • Mnemonics are converted to binaries with help of a translator known as assembler.
  • Easy to understand and use
  • More control on hardware
  • Machine dependent
  • Harder to learn
  • Less efficient
  • No standardization
  • No support for modern software technology

High level language   (2 marks)

  • Instruction are written using English language with symbols and digits
  • It is also called procedural language
  • The commonly used high-level languages are FORTRAN, BASIC, COBOL, C, C++, Java etc.
  • The high-level languages are converted to machine language using translators
  • Interpreter

 Compiler: ( 2 marks)

  • Translate entire program of high-level languages into machine language
  • Convert instruction from human understandable form to machine understandable form.
  • Most of the languages use compiler
  • It is faster

 Interpreter: ( 2 marks)

  • Translate each line of program instruction to machine language
  • Very few languages use interpreter

Difference between compiler and interpreter: ( 2 marks)

problem solving and python programming unit 1

  • Readability
  • Machine independent
  • Easy debugging
  • Easier to maintain
  • Low development cost
  • Poor control on hardware
  • An algorithm is a plan for solving a problem
  • The development of an algorithm is the key step in algorithmic problem solving
  • algorithmic problem solving is about the formation and solution of problems
  • algorithmic problem solving process consist of six major steps, they are

problem solving and python programming unit 1

1. Obtain a description of the problem

  • Algorithmic problem solving process starts by obtaining a description of the problem
  • Understanding the problem
  • Clarify the doubts after leading the problem description
  • Identifying and collecting information
  • Correct algorithm should work for all possible input

2. Analyze the problem

  • Determine both the starting and the ending points for solving the problem
  • Analyze both time and space efficiency
  • What data are available?
  • Where the data from?
  • What are the rules exist for working with the data?
  • When determining the ending point algorithm needs to describe the characteristic of a solution.
  • What new facts will we have?
  • What items would have changed?
  • What things will no longer exist?

3.  Develop a high-level algorithm

  • Algorithm is plan for solving a problem, but plans come in several levels of detail
  • Developing high-level algorithm which includes major part of a solution
  • Leaves the detail until later

4. Refine the algorithm

  • Provide enough detail to solve the problem
  • For complex problem go through the process several time, develop intermediate level algorithm
  • Each time more details are added to the previous algorithm, for further refinement
  • Stepwise refinement is the process of developing a detailed algorithm by gradually adding details to a high level algorithm

5. Review the algorithm

  • Review the algorithm step by step to determine whether or not ,it will solve the original problem
  • Example : for computing the area of a circle If radius is 5.2 meters (formula π*5.22) solves a very specific problem (formula π*R*R) solves a more general problem.
  • Example :One formula for computing the perimeter of a rectangle is: length + width + length + width
  • A simpler formula would be: 2.0 * (length + width)
  • Triangle area = 0.5 * base * height
  • Rectangle area=length * width
  • Similarities: Each computes an area. Each multiplies two measurements.
  • Differences: Different measurements are used. The triangle formula contains 0.5.

6. Code the algorithm

  • Once an algorithm developed ,it is coded using some programming languages
  • Each line of algorithm is translate to computer programs using programming languages
  • Executing the program
  • Checking errors and testing with different inputs
  • There are various kinds of algorithm developing technique formulated and used for different types of problems.
  • Sequence structure
  • Selection structure
  • Iteration structure
  • Recursion structure
  • The logic flow is from top to bottom

problem solving and python programming unit 1

Selection (decision or branching)structure

  • In selection control flow,

problem solving and python programming unit 1

  • Print ‘A’ is bigger
  • Print ‘B’ is bigger
  • Check the condition
  • If condition is true execute the statement
  • If condition is false, the statement is not executed
  • If condition is false, execute the else statement
  • Check multiple expressions
  • Execute a block of code as soon as one of the conditions is true.

problem solving and python programming unit 1

  • Step 3: FOR 1 to 10

There are two repetition structures in python, they are

  • It is also called entry controlled loop
  • If condition is true execute the body of the loop
  • Process continues until the condition becomes false
  • Consists of a header and a set of statements called the body
  • Header contains information that controls the number of times that the body executes
  • In recursion technique a function or procedure is called by itself again and again until a given condition is satisfied.

 Example: Recursive algorithm for finding the factorial of a number

  • Step 2: Read number n
  • Step 3: Call factorial (n)
  • Step 4: Print factorial f
  • factorial (n)
  • Step 1: If n==1 then return 1
  • Step 2: Else
  • f=n*factorial (n-1)
  • Step 3: Return f

Find Minimum number in a list ( 8 marks)

  • To find minimum value in an list, take the first element and compare its value against the values of the other elements
  • Repeat the process till the end of the list
  • Finally the minimum value in the list is obtained
  • Step 2: Assign the first value of the list as minimum value
  • Step 3: Compare this value to the other values starting from second value
  • Step 4: When a value is smaller than the present minimum value is found, it becomes the new minimum
  • Step 5: Repeat the steps till the end of the list
  • Step 6: Print the minimum value
  • Step 7: Stop

Consider a list

problem solving and python programming unit 1

  • Take the first value in the list as Min value

problem solving and python programming unit 1

  • Compare the Min value with the next value in a list 40 < min value, so interchange min value

problem solving and python programming unit 1

  • Compare the Min value with the next value in a list 5 < min value, so interchange min value

problem solving and python programming unit 1

  • Compare the Min value with the next value in a list 9 > min value, so need to interchange min value

problem solving and python programming unit 1

  • Compare the Min value with the last value in a list 45 > min value, so need to interchange min value

problem solving and python programming unit 1

Finally the minimum value in this list is 5

Insert a card in a list of sorted cards ( 8 marks)

  • To insert a card in the sorted card, increase the list size with 1.
  • Insert new card in the appropriate position by comparing each element’s value with the new one.
  • When the position is found, move the remaining elements by one position up and the card can be inserted
  • Step 2: If it is the first element, it is already sorted
  • Step 3: Compare with all elements in the sorted sub-list
  • Step 4: Shift all elements in the sorted sub-list that is greater than the value
  • Step 5: Insert the value
  • Step 6: Repeat until list is sorted
  • Step 7: Display all the card elements of a new list
  • Step 8: Stop

  Consider an array from index 0 through index 5 is already sorted

problem solving and python programming unit 1

Need to insert the element currently in index 6 into this sorted array

 Store the element at index 6 into a variable called key

problem solving and python programming unit 1

  • Compare key with the element at position 5.
  • Key value (5) < Element at 5 th position (13), so shift this element to position 6

problem solving and python programming unit 1

  • Compare key with the element at position 4.
  • Key value (5) < Element at 4 th position (10), so shift this element to position 5

problem solving and python programming unit 1

  • Compare key with the element at position 3.
  • Key value (5) < Element at 3 rd position (8), so shift this element to position 4

problem solving and python programming unit 1

  • Compare key with the element at position 2.
  • Key value (5) < Element at 2 nd position (7), so shift this element to position 3

problem solving and python programming unit 1

  • Compare key with the element at position 1.
  • Key value (5) > Element at 1 st position (3), so no need to shift it over

problem solving and python programming unit 1

  • instead, drop key into the position immediately to the right of this element (that is, into position 2)

problem solving and python programming unit 1

Guessing an integer number in a range ( 8 marks)

  • Objective is to randomly generate integer number from 0 to n
  • The player have to guess the number
  • If player guess number correctly ,output an appropriate message
  • If guess number is less than random number generated, output the message “Your guess is lower than the number. Guess again”
  • Otherwise output the message “Your guess is higher than the number. Guess again”
  • This process is repeated until the player enters the correct number
  • Step 2: Generate a random number and call it num
  • Enter the number to guess
  • if(guess is equal to num)
  • Print “You guessed the correct number”
  • if (guess is less than num)
  • Guess again!”

Consider a player want to guess a number between 1 and 100

The number selected for guess is 82

Step 1:  choose the middle number from the range 1 to 100, middle no is 50

problem solving and python programming unit 1

Step 2:  choose the middle number from the range 51 to 100, middle no is 75

problem solving and python programming unit 1

Step 3:  choose the middle number from the range 76 to 100, middle no is 88

problem solving and python programming unit 1

Step 4:  choose the middle number from the range 76 to 87, middle no is 81

problem solving and python programming unit 1

Step 5:  choose the middle number from the range 82 to 87, middle no is 84

problem solving and python programming unit 1

Step 6:  choose the middle number from the range 76 to 87

Middle no is 82.5, which is rounded to 82

problem solving and python programming unit 1

                     

Tower of Hanoi Problem ( 8 marks)

  • Tower of Hanoi is one of the classical problems of computer science
  • The problem states that,
  • There are three stands(Stand 1,2 and 3) on which a set of disks, each with a different diameter are placed
  • Initially, the disks are stacked on Stand 1,in order of size with the larger disk at the bottom

The initial structure of the Tower of Hanoi with three disks is shown below

problem solving and python programming unit 1

  • Move only one disk at a time
  • A larger disk cannot be placed on top of a smaller disk.
  • Only the “top” disk can be removed
  • The recurrence relation for solving the Tower of Hanoi problem can be written as

problem solving and python programming unit 1

  • Step 1:  START
  • Step 2:  Procedure Hanoi (disk, source, dest, aux)
  • Step 3.1:  move disk from source to dest
  • Step 4.1:  Hanoi (disk-1, source, aux, dest)
  • Step 4.2:  move disk from source to dest
  • Step 4.3:  Hanoi (disk-1, aux, dest, source)
  • Step 5:  END If
  • Step 6:  END Procedure
  • Step 7:  STOP
  • The general strategy for solvingthe Tower of Hanoi problem with three disks as  follows

problem solving and python programming unit 1

Move 1: move disk 3 to post C 

problem solving and python programming unit 1

Move 2: move disk 2 to post B

problem solving and python programming unit 1

Move 3: move disk 3 to post B 

problem solving and python programming unit 1

Move 4: move disk 1 to post C 

problem solving and python programming unit 1

Move 5: move disk 3 to post A

problem solving and python programming unit 1

Move 6: move disk 2 to post C 

problem solving and python programming unit 1

Move 7: move disk 3 to post C

problem solving and python programming unit 1

  • Step 2: Read the value of a, b, c
  • Step 3: d = b*b – 4*a*c
  • Display the Roots are Imaginary.
  • Display Roots are Equal.
  • r = -b / 2*a
  • r1 = -b + √d / 2*a
  • r2 = -b – √d / 2*a
  • display Roots are real and r1, r2
  • READ the value of a, b, c
  • CALCULATE d = b*b – 4*a*c
  • DISPLAY the Roots are Imaginary.
  • DISPLAY Roots are Equal.
  • DISPLAY, r = -b / 2*a
  • DISPLAY Roots are real and r1, r2

Leave a Comment Cancel reply

Save my name, email, and website in this browser for the next time I comment.

Please Enable JavaScript in your Browser to Visit this Site.

problem solving and python programming unit 1

Programming for Problem Solving

This book provides an introduction to computer programming using Python as a way to solve problems. It focuses on programming concepts and fundamentals within the context of solving real world problems.

book-cover

Table of Contents

  • Attributions
  • Acknowledgments
  • Learning Objectives
  • Introduction
  • Computational Thinking
  • An Example Algorithm
  • Verifying your Algorithm
  • The Process of Computational Problem Solving
  • Values and Variables
  • What is a Program?
  • Computational Problem Design Using the Basic Programming Constructs
  • The Role of Programming in the Field of Informatics
  • Unit Summary
  • Practice Problems
  • Computer Hardware Architecture
  • Digital Computing: It’s All about 0’s and 1’s
  • Operating Systems—Bridging Software and Hardware
  • Software Development Tools
  • Learning Programming with Python
  • Writing a Python Program
  • The Python Interactive Shell
  • The Basics of Python Programming
  • Example: Using Variables and Literal Constants
  • Operators and Expressions
  • Practice with Operators & Expressions
  • Evaluation Order
  • Input/Process/Output Pattern
  • Type Converter Functions
  • Python’s Standard Library
  • More on Strings
  • Object Oriented Programming
  • Simple Graphics Programming
  • Graphics Windows: Coordinate Systems
  • GraphWin Objects
  • Text Methods
  • Entry Objects
  • Displaying Images
  • Generating Colors
  • Interactive Graphics
  • Boolean Expressions
  • Logical Operators
  • Conditional Execution
  • Exception Handling
  • Practice with Handling Exceptions in our Programs
  • The for…in Statement
  • Nested Loops
  • Basic File Processing
  • Installing Python 3 and IDLE
  • Using Python and its IDE 
  • Appendix B: Python Cheat Sheet

This courseware includes resources copyrighted and openly licensed by multiple individuals and organizations. Click the words "Licenses and Attributions" at the bottom of each page for copyright and licensing information specific to the material on that page. If you believe that this courseware violates your copyright, please contact us .

Lumen Learning

Lumen Learning provides a simple, supported path for faculty members to adopt and teach effectively with open educational resources (OER). Read more about what we do.

Footer Logo Lumen Candela

Privacy Policy

COMMENTS

  1. [PDF] GE3151 Problem Solving and Python Programming (PSPP) Books

    Python interpreter and interactive mode, debugging; values and types: int, float, boolean, string, and list; variables, expressions, statements, tuple assignment, precedence of operators, comments; Illustrative programs: exchange the values of two variables, circulate the values of n variables, distance between two points.

  2. PDF Notes of Lesson Ge3151- Problem Solving and Python Programming

    3. Pseudo codes. 4. Programs 1.ALGORITHM It is defined as a sequence of instructions that describe a method for solving a problem. In other words it is a step by step procedure for solving a problem •Should be written in simple English •Each and every instruction should be precise and unambiguous.

  3. Problem solving and Python Programming

    playlist:GE3151Problem solving and Python Programming:https://youtube.com/playlist?list=PLsSVwg9fgFKkOu8uQWjk8W6dpm6PeilLVnotes:https://manojkumardheeran.blo...

  4. PDF Unit I (Ge8151 Problem Solving and Python Programming)

    GE8151 PROBLEM SOLVING AND PYTHON PROGRAMMING UNIT I (GE8151 PROBLEM SOLVING AND PYTHON PROGRAMMING) ILLUSTRATIVE PROBLEMS: 1. Guess an integer number in a range Guessing game - guessing a number within a range of numbers. Algorithm: 1. Start 2. Read n. 3. Read a guess number. 4. If guess > n 5. Print "Your guess is too high" 6. If guess ...

  5. GE8151 PROBLEM SOLVING AND PYTHON PROGRAMMING SYLLABUS OBJECTIVES

    PROBLEM SOLVING TECHNIQUES Problem solving technique is a set of techniques that helps in providing logic for solving a problem. Problem solving can be expressed in the form of 1. Algorithms. 2. Flowcharts. 3. Pseudo codes. 4. Programs 1.ALGORITHM It is defined as a sequence of instructions that describe a method for solving a problem. In other ...

  6. Problem Solving and Python Programming

    It mainly focuses on problem solving using python. Unit 1 covers algorithms, building blocks of algorithms, notation, algorithmic problem solving and simple strategies for developing algorithms. This unit also give the solutions to find minimum in a list, insert a card in a list of sorted cards, guess an integer number in a range and Towers of ...

  7. PDF Ge8151 Problem Solving and Python Programming Unit I Algorithmic ...

    Problem solving technique is a set of techniques that helps in providing logic for solving a problem. Problem Solving Techniques/Program Design Tools: Problem solving can be expressed in the form of 1. Algorithms. 2. Flowcharts. 3. Pseudo codes. 1.2.ALGORITHM Algorithm is an ordered sequence of finite, well defined, unambiguous instructions for ...

  8. Unit 1- notes

    1 SOLVING Problem solving is the systematic approach to define the problem and creating number of solutions. The problem solving process starts with the problem specifications and ends with a Correct program. 1 PROBLEM SOLVING TECHNIQUES Problem solving technique is a set of techniques that helps in providing logic for solving a problem.

  9. Problem Solving and Programming with Python

    Programming skill is best developed by rigorous practice. Keeping this in mind, the book provides a number of programming examples that would help the reader learn how to write efficient programs. These . programming examples have already been complied and tested using Python 3.4.1 version and can be also executed on Python 3.5 and 3.6 versions.

  10. [PDF] GE3151 Problem Solving and Python Programming ...

    From the listed below links, the students & the lectures can download the Anna University GE3151 Problem Solving and Python Programming (PSPP) Syllabus Question bank Lecture Notes Part A 2 marks with answers Part B 16 marks Question Bank with an answer, Previous year Question Papers and all other important materials of GE3151 subject.

  11. Problem Solving and Python Programming| Unit-I| GE3151|PSPP

    #python #GE3151#pythonprogramming#pspp#Firstyear #FirstsemGE3151- Problem Solving and Python ProgrammingHow to pass Python Video Link: https://youtu.be/cOFC...

  12. Ge1105 Problem Solving and Python Programming Unit

    UNIT 1 ALGORITHMIC PROBLEM SOLVING Algorithms, building blocks of algorithms (statements, state, control flow, functions), notation (pseudo code, flow chart, programming language), algorithmic problem solving, Basic algorithms, flowcharts, and pseudocode for sequential, decision processing, and iterative

  13. Problem Solving, Python Programming, and Video Games

    There are 12 modules in this course. This course is an introduction to computer science and programming in Python. Upon successful completion of this course, you will be able to: 1. Take a new computational problem and solve it, using several problem solving techniques including abstraction and problem decomposition. 2.

  14. Ge3151 Unit 1

    unit 1 problem solving and python programming cse/aamec Object oriented programming language is a programming paradigm based on the concept of "objects", which may contain data, in the form of fields, often known as attributes and code, in the form of procedures, often known as methods.

  15. PROBLEM SOLVING AND PYTHON PROGRAMMING

    PROBLEM SOLVING AND PYTHON PROGRAMMING LABORATORY. Program 1 - Practise program - edit in real time and learn. FREE. 00:00:00. Program 1 - visualize program - compute the GCD of two numbers. FREE. 00:00:00. Program 2 - Practise program - edit in real time and learn-FIND SQUARE ROOT OF A NUMBER (NEWTON'S METHOD) FREE.

  16. Problem Solving and Python Programming

    Problem Solving and Python Programming UNIT I: COMPUTATIONAL THINKING AND PROBLEM SOLVING UNIT II: DATA TYPES, EXPRESSIONS, STATEMENTS UNIT III: CONTROL FLOW, FUNCTIONS, STRINGS UNIT IV: LISTS, TUPLES, DICTIONARIES UNIT I : Algorithmic Problem Solving UNIT II : Data Expressions Statements UNIT III : Control Flow Functions

  17. Learning Python: Unit 1, Introduction

    A more complete definition… Python is a powerful, general-purpose, multi-paradigm programming language that blends procedural, functional, and object-oriented tools; is optimized for programmer productivity, code readability, and software quality; and is widely used in both scripting and stand-alone development roles. Python is also generally considered to be one of the top 5 or 10 most ...

  18. PPS Unit 1 One Shot

    PPS Unit 1 One Shot | SPPU | Problem Solving, Programming & Python Programming | #python #programming #coding #sppu #pps #firstyearengineering #endsem #engin...

  19. Introduction

    Welcome to the world of problem solving with Python! This first Orientation chapter will help you get started by guiding you through the process of installing Python on your computer. By the end of this chapter, you will be able to: Describe why Python is a useful computer language for problem solvers. Describe applications where Python is used.

  20. Ge8151 Problem Solving and Python Programming Syllabus Objectives: Unit

    PROBLEM SOLVING TECHNIQUES Problem solving technique is a set of techniques that helps in providing logic for solving a problem. Problem solving can be expressed in the form of 1. Algorithms. 2. Flowcharts. 3. Pseudo codes. 4. Programs 5.ALGORITHM It is defined as a sequence of instructions that describe a method for solving a problem. In other ...

  21. Problem Solving and Python Programming Unit 1 Complete

    Problem Solving and Python Programming Unit 1 Complete August 4, 2021 by Admin Algorithmic Problem Solving Table of Content: Algorithmic Problem Solving Program (2 marks) Problem-solving (2 marks) Problem solving Methodology (Software Life cycle) (8 marks) ALGORITHM (16 marks & 8 marks) Algorithm (2 marks) Characteristics of Algorithm (2 marks)

  22. Programming for Problem Solving

    UNIT 4: Control Structures: Making Decisions and Looping in Computing. Data and Information Processing in Python. This book provides an introduction to computer programming using Python as a way to solve problems. It focuses on programming concepts and fundamentals within the context of solving real world problems.

  23. Saurabh Mishra on Instagram: " Learn the Power of Two-Pointer Approach

    dsaa2z on February 19, 2024: " Learn the Power of Two-Pointer Approach The two-pointer approach is a powerful technique u..."

  24. Princy R on Instagram: "Share to your bio maths frds 1

    princyr_offl on February 19, 2024: "Share to your bio maths frds 1. **Bioinformatics Scientist**: - Education: Bachelor's ..." Princy R on Instagram: "Share to your bio maths frds🙌🏻 1.