Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 26 2018, 23:26:24) [Clang 6.0 (clang-600.0.57)] on darwin Type "copyright", "credits" or "license()" for more information. >>> ========== RESTART: /Users/koc/Desktop/test1.py ========== >>> mf1 <_io.TextIOWrapper name='/Users/koc/Desktop/next.txt' mode='r' encoding='UTF-8'> >>> ========== RESTART: /Users/koc/Desktop/test1.py ========== amy 25 bob 20 xyz 21 abc 99 def 82 ghk 80 >>> ========== RESTART: /Users/koc/Desktop/test1.py ========== 7 7 7 7 7 7 >>> ========== RESTART: /Users/koc/Desktop/test1.py ========== 6 6 6 6 6 6 >>> ========== RESTART: /Users/koc/Desktop/test1.py ========== amy 25 bob 20 xyz 21 abc 99 def 82 ghk 80 >>> ========== RESTART: /Users/koc/Desktop/test1.py ========== amy 25 bob 20 xyz 21 abc 99 def 82 ghk 80 >>> ========== RESTART: /Users/koc/Desktop/test1.py ========== amy 25 bob 20 xyz 21 abc 99 def 82 ghk 80 >>> ========== RESTART: /Users/koc/Desktop/test1.py ========== amy 25 bob 20 xyz 21 abc 99 def 82 ghk 80 >>> ========== RESTART: /Users/koc/Desktop/test1.py ========== amy 25 bob 20 xyz 21 abc 99 def 82 ghk 80 amy 25 bob 20 xyz 21 abc 99 def 82 ghk 80 >>> ========== RESTART: /Users/koc/Desktop/test1.py ========== amy 25 bob 20 xyz 21 abc 99 def 82 ghk 80 >>> ========== RESTART: /Users/koc/Desktop/test1.py ========== amy 25 bob 20 xyz 21 abc 99 def 82 ghk 80 >>> ========== RESTART: /Users/koc/Desktop/test1.py ========== amy 25 bob 20 xyz 21 abc 99 def 82 ghk 80 >>> pali("abba") True >>> pali("asa") True >>> pali("azya") False >>> ========== RESTART: /Users/koc/Desktop/test1.py ========== amy 25 bob 20 xyz 21 abc 99 def 82 ghk 80 >>> s = "amy 25 SyntaxError: EOL while scanning string literal >>> s = "amy 25" >>> s.split() ['amy', '25'] >>> ====== RESTART: /Users/koc/Desktop/active/test2.py ====== Traceback (most recent call last): File "/Users/koc/Desktop/active/test2.py", line 2, in mw1 = open("/Users/koc/Desktop/next2.txt", "r") FileNotFoundError: [Errno 2] No such file or directory: '/Users/koc/Desktop/next2.txt' >>> ====== RESTART: /Users/koc/Desktop/active/test2.py ====== amy 25 bob 20 xyz 21 abc 99 def 82 ghk 80 >>> ====== RESTART: /Users/koc/Desktop/active/test2.py ====== 25 amy 20 bob 21 xyz 99 abc 82 def 80 ghk >>> ====== RESTART: /Users/koc/Desktop/active/test2.py ====== >>> ====== RESTART: /Users/koc/Desktop/active/test2.py ====== >>> ====== RESTART: /Users/koc/Desktop/active/test2.py ====== >>> s1 = "25" >>> s2 = "33" >>> s3 = s1 + s2 >>> s3 '2533' >>> int(s1) + int(2) 27 >>> int(s1) + int(s2) 58 >>> ====== RESTART: /Users/koc/Desktop/active/test2.py ====== >>>