[Python Q&A] Lab session for variables, operators, expressions, basic I/O, and string manipulation
Lab session for variables, operators, expressions, basic I/O, and string manipulation # Exercise 01 print('Sup World?') print(3 + 2 ) print('3 + 2') MyNumber = 3+2.0 MyName = 'Dusty' print(MyName, MyNumber) print('MyName', 'MyNumber') Sup World? 5 3 + 2 Dusty 5.0 MyName MyNumber What is the difference between print(3 + 2) and print('3 + 2') ? 위의 코드에서 3 + 2 를 출력하면 5가 나오지만 '3+2'를 출력하면 3+2가 산출된다. 3..
2022. 9. 20.