Skip navigation
Element information using Python
0:00 / 1:18

Element information using Python

Python Coding

@clcoding656K followers

Visit on X
448 likesDownloadOriginal post

28,012 views

Element information using Python

4 Comments

Comments from the original post on X (Twitter)

  • Python Coding's profile picture

    @clcoding

    Element information using Python Free Code:

    14 likes

  • ᗩᘔKᗩ ᘔᗩᕼIᗪ🕊️'s profile picture

    @AZKA__ZAHID

    I want to fetch data on Pakistan stock exchange by using twitter tweets Is there is any library/ or any code that will be helpful for me!!!!????

  • Visu's profile picture

    @tweetvisu

    import periodictable # Function to get information about an element def get_element_info(symbol): # Check if the symbol is valid if not periodictable.elements.symbol(symbol): print("Invalid element symbol.") return # Access information about the specified element element = periodictable.elements.symbol(symbol) # Print information about the element print(f"Element: { print(f"Symbol: {element.symbol}") print(f"Atomic Number: {element.number}") print(f"Atomic Weight: {element.mass}") print(f"Density: {element.density}") nameMap = [] for elm in periodictable.elements: nameMap.append((elm.symbol, nameMap.sort(key=lambda x: x[1]) print(nameMap) print('referece: print('reference: print('Enter one of the above symbols to get information about the element eg Na for sodium(case senstive)') # Prompt the user to input an element symbol element_symbol = input("Enter the symbol of the element: ") # Call the function to get information about the specified element get_element_info(element_symbol)

  • Rudra's profile picture

    @rudra_ds

    python project ideas for beginners ?