tag:blogger.com,1999:blog-1298551771411015285.post9145539804450756485..comments2024-03-24T05:33:36.168-05:00Comments on Analytics and Visualization of Big Data: Tutorial: Python 3.3.0Fadel Megahedhttp://www.blogger.com/profile/08369551255758696380noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-1298551771411015285.post-3077177156702291552019-08-21T04:06:10.344-05:002019-08-21T04:06:10.344-05:00Thanks for one marvelous posting! I enjoyed readin...Thanks for one marvelous posting! I enjoyed reading it; you are a great author. I will make sure to bookmark your blog and may come back someday. I want to encourage that you continue your great posts, have a nice weekend!<br /><a href="https://twitter.com/surya_infomatic?lang=en" rel="nofollow">Surya Informatics</a> arjunhttps://www.blogger.com/profile/17195702544675562902noreply@blogger.comtag:blogger.com,1999:blog-1298551771411015285.post-28128994449557244752019-08-01T23:41:27.288-05:002019-08-01T23:41:27.288-05:00This comment has been removed by the author.arjunhttps://www.blogger.com/profile/17195702544675562902noreply@blogger.comtag:blogger.com,1999:blog-1298551771411015285.post-8182018566543386722019-03-06T03:17:32.033-06:002019-03-06T03:17:32.033-06:00very good information. we need learn from real tim...very good information. we need learn from real time examples and for this we choose good training institute, we refer Apponix Technologies which offers free demo classes!!<br />https://bit.ly/2IEK4CYChethu Apponixhttps://www.blogger.com/profile/13312521855131502301noreply@blogger.comtag:blogger.com,1999:blog-1298551771411015285.post-22953709607954286202013-04-02T23:30:58.108-05:002013-04-02T23:30:58.108-05:00That is correct. There are lots of changes in Pyth...That is correct. There are lots of changes in Python 3.3 compared with Python 2.x. In Python 2.x, there are some differences between the function "input" and "raw_input", but in Python 3.3.0, it combine the function "input" and "raw_input" to "input" only. Also the print ''' doesn't work in Python 3.3.0. If you find other differences, please reply this. Thanks.Bin Wenghttps://www.blogger.com/profile/01809910916239453836noreply@blogger.comtag:blogger.com,1999:blog-1298551771411015285.post-30247752353505014472013-04-02T23:26:21.058-05:002013-04-02T23:26:21.058-05:00This is an interesting and helpful tutorial. I ins...This is an interesting and helpful tutorial. I installed both in Windows and Ubuntu. I also found another website which is a learning material for Python, the website link is:<br /><br />http://cscircles.cemc.uwaterloo.ca/<br /><br />It teaches different python programming functions. And this lesson does not require any programming experience. It means that it will teach the reader what is variable, what error in programming is and what is function etc. <br /><br />I think this website is better than other websites. The best is that it provides "live exercise". The author provides a compiler for each exercise. When the reader completes an exercise, and click run program, the program will be compiled and ran. This process is as same as the process in real python editor. <br /><br />This compiler is also a grader. When you give the wrong answers, it will show the mistakes and tell the reader why it is wrong. <br /><br />Xinyu introduced Python 2.x in class. From this website introduced Python 3.3, I noticed, in Python 3.3, when print something, it should be written as:<br /> print ( )<br />not <br /> print " " <br /><br />The reason is, "print" in 2.x is a state, while in 3.x is function.<br /><br />Hence, the wordsplitter example program is written as:<br /><br />#!/usr/bin/python<br />import sys <br />import re <br /><br />def main(argv): <br /> pattern = re.compile("[a-zA-Z][a-zA-Z0-9]*") <br /> for line in sys.stdin: <br /> for word in pattern.findall(line): <br /> print "LongValueSum:" + word.lower() + "\t" + "1" <br />if __name__ == "__main__": <br />main(sys.argv)<br /><br />Now in Python 3.x ti should be written as<br />#!/usr/bin/python<br />import sys <br />import re <br /><br />def main(argv): <br /> pattern = re.compile("[a-zA-Z][a-zA-Z0-9]*") <br /> for line in sys.stdin: <br /> for word in pattern.findall(line): <br /> print ("LongValueSum:" + word.lower() + "\t" + "1") <br /><br />if __name__ == "__main__": <br /> main(sys.argv)<br />Gang Haohttps://www.blogger.com/profile/11770902887473437670noreply@blogger.com