0% found this document useful (0 votes)
14 views15 pages

Information Practices Project

Uploaded by

Arshad Jamil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
14 views15 pages

Information Practices Project

Uploaded by

Arshad Jamil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
LAL PUBLIC 5 gn Ld “Hoo, RANCHI "2023-24" AISSCE CERTIFICATE This is to certify that MD. Arshad of class XII’A’ has successfully completed the Informatics Practices project on the topic Chemistry with Python under the guidance of Mr. Sanjeev Kumar Shrivastava sir during the academic year 2023-24. INTERNAL EXAMINER EXTERNAL EXAMINER ACKNOWLEGMENT I would like to express my special thanks of gratitude to my teacher Mr. Sanjeev Kumar Shrivastava sir who gave me golden opportunity to do this project of INFORMATICS PRACTICES, which also helped me in doing a lot of research and I came to know new things about it. Without their help, guidance and support it would be impossible to complete this project. Secondly, I would also like to thank my parents and friends who helped me a lot in finishing this project within limited time. I am making this project not only for marks but also to increase my knowledge. Once again thanks to all who helped me in doing this project. INDEX S.NO TOPIC PAGE NO [SIGN 1 | SOFTWARE USED 5 2 HARDWARE USED 5 3, OVERVIEW OF 6 PYTHON 4 SOURCE CODE 7-12 5 | OUTPUT 13 7 LIMITATION 14 g BIBLIOGRAPHY 15 SOFTWARE USED — PYTHON 3.11 — VISUAL STUDIO CODE — MICROSOFT WORD 365 — WINDOWS 10 HARDWARE USED —lntel(R) Pentium(R) CPU G3220 —MS116 Dell Mouse and KB216 Dell Keyboard for input —Zebion monitor for output OVERVIEW OF PYTHON Python is a general purpose, dynamic, high-level, and interpreted programming language. It supports Object Oriented programming approach to develop applications. It is the simple and easy to learn and provides lots of high level data structures. Guido ‘Van Rossum is known as the founder of Python programming. Features of Python: & Python isa high level language. It isa free and open source language. + [tis an interpreted language, as python programs are executed by an interpreter. & Python is programs are easy to understand as they have a clearly defined syntax and relatively simple structure. 4 Python case-sensitive. For example, NUMBER and number are not same in Python. + Python is portable and platform independent, means it can run on various operating systems and hardware platforms. & Python has a rich library of predefined functions. + Python is also helpful in web development. Many popular web services and applications are built using python. + Python uses indentation for blocks and nested blocks. Page 1/19 SOURCE CODE ut_at_no() a ee atno = int( rans) Niet sleep(5) Peat er) eC symb = ['H', "He", 5 a} aus Pua) if Len(synbo) == symbo = symbo. capitalize() Obese Ce) Rae DL eet LMR) SCcSEe Ones symbo.__getitem_(1).lower() elif Len(symbo) == 3 Bee stm COR StcTee Ones symbo.__getitem_(1).lower() + symbo.__getitem_(2).lower() RU OU LLCO pet pees) sleep(5) coarse Or Sri c) ene ae Pee ae ) Crema) Pea ce ) erm eee Pst orn) Paae ray rae rear) Pa Srey Pause Oey Une if i.__getitem_(1) if AtNo ete eeN) break ct eee ao eS ee Cea ciel Creare cts eco rao Cee LD) on print(i, 6, end=" , ') AtNo = AtNo - 6 pao) cs rege tm ra eC Pele rms D) eon eu cee eee) ans os Sree mC O Oo. print(i, AtNo) een ar if AtNo < cols cans lO Perse) pear oe ava) print( Cen Pets reee a oe) pea eee pri (C\rr eae) Gen Pete Geeta. ava print( Pa ee ee) Sen Pete Creteatay Parva CX ea Crear: etc Crear Petre 2D Orn Petree Ct ee ee aD) re ee oa if AtNo == 54 Pete PC ee ee CEC) Greco Cont Pete Crea eee D Pete » (AtNo - 36)) Gen Petre » (AtNo - 2 - 8 - 18 - 18) rere oa pea eae ete » (AtNo - 2-8 - 18 - 32 - Grameen oer) print( Crean) ry » (AtNo - 54)) ree print( » (AtNo - 2- 8 - 18 - 32 - 18)) ra ear cata Cae On ces ere Pisurag Pearce Ere Ott6) Par ae eu nag N » aoe get_input_at_no() Poa ears Cale ee Seite) ) CC ance ta p(5) Gee Part aera elecon() ynbo1() Breacr6 are Cee ean sleep(5) BteTte) Poe ans Petre SMe ncn inn = input(f'\n Try (name) \n (y/n)>>> if inn.lower() Pe mere Cetera me sleep(1) ers Uae ase) Pe me era print("Invalid Input See One sleep(5) --- :Chemistry with Python = 1. Get Electronic Configuration by Atomic No. 2. Get Electronic Configuration by Atomic ee flab Tame el OMT ol La LLL Noble gas Electronic Configurations: 2, 8 Atomic Symbol : Ne Electronic Configurations : Is 2, 282, 2p6 Atomic No = 10 Liar Ussiia LIMITATIONS — Limited Predefined Configurations: ‘The script contains predefined electronic configurations for specific atomic numbers. However, this approach is not scalable for all elements. It would be more efficient to calculate the electronic configurations dynamically based on principles such as the Aufbau principle. — Lack of Documentation: The script lacks comments or documentation that explains the logic behind certain operations. This can make it challenging for someone else (or even yourself in the future) to understand the code. — Limited Error Handling: While the script does handle invalid inputs to some extent, it might not cover all possible error scenarios. More robust error handling could be implemented to ensure the program handles unexpected inputs gracefully. — Repetition in Code: There is some repetition in the code, especially in the elecon() and symbol() functions. This repetition could be reduced by creating additional helper functions or using more concise logic. — Global Variables: The use of global variables (AtNo, atno) makes the code less modular and could lead to unintended side effects. Consider passing variables explicitly to functions or using a class to encapsulate state. — Limited User Interaction: The script mainly relies on text-based interactions with the user. Enhancements could be made by using a graphical user interface (GUI) or a web interface for a more user-friendly experience. > Limited Scope: The script focuses on electronic configurations and atomic symbols, It does not provide additional information about the elements, such as atomic mass, melting point, or boiling point. — Hard-Coded Values: The script has hard-coded values for certain atomic numbers. It would be more flexible to calculate electronic configurations based on the principles of atomic structure rather than using predefined values. — Infinite Loop: The script seems to be intended to run in a loop, prompting the user to try again. However, the try_again_or_not function is called in the except block without being defined before the try block. — Limited Testing: The script does not include a comprehensive set of test cases to ensure its correctness and robustness. Adding test cases would be beneficial to identify and fix potential issues. BIBLIOGRAPHY WEBSITES USED — W3SCHOOL — STACK OVERFLOW BOOK USED — Informatics Practices Textbook for Class XII (NCERT)

You might also like