This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Runtime.InteropServices; | |
| namespace ConsoleApp1 { | |
| class NewClass { | |
| public void printTwoNumbers() { | |
| Console.WriteLine("Enter the value of a: "); | |
| int a = int.Parse(Console.ReadLine()); | |
| Console.WriteLine("Enter the value of b: "); | |
| int b = int.Parse(Console.ReadLine()); | |
| Console.WriteLine("The sum of {0} and {1} is {2}", a, b, a + b); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from urllib.request import urlopen | |
| from bs4 import BeautifulSoup | |
| html = urlopen('https://merolagani.com/LatestMarket.aspx') | |
| bs = BeautifulSoup(html.read(), 'html.parser') | |
| namelist = bs.find('div', {'id': 'ctl00_ContentPlaceHolder1_LiveTrading'}) | |
| childtag = namelist.find('table') | |
| childchildtag = childtag.find('tbody') |