Apcs Python

0 views
Skip to first unread message

Karren Bangura

unread,
Aug 4, 2024, 3:27:54 PM8/4/24
to crescomptexde
Firstwhat exactly makes programming language different from each other? Both Java and Python are considered high-level languages, or are more reader-friendly than computer-friendly. (Through a process called compiling or interpreting, the reader-friendly content turns into computer-friendly content.) Python is almost English; it is considered to be one of the easiest programming languages to learn. Java, on the other hand, is verbose with a rigid structure. In Python, one can write in functional programming as well as object-oriented, whereas Java only uses object-oriented. Finally, Java is typically faster than Python. I believe that every language has different uses, and the uses of Python generally outweigh those of Java for learning and applications.

Java has a way more natural structure then Python. There is no need for Python. I took a quick intro to Python and I asked the instructor what can python do that java cannot. The response was that Python has dictionaries. Lol. Well so does Java, they are called Maps. You example of print Hello is misleading since you are printing that from the Python Shell. Java has IDEs that can do the same thing but there is no great need for a shell, The important thing about learning computer science is to understand what goes on behind the scenes. I think that it is a shame that you are promoting a loosely typed language in Python. So, some people got into a python and developed some deep learning programs. I am teaching Python now and I cannot understand that someone with your experience is promoting Python.

By the way , Python is not taught in AP Computer Science Principles. a generic language is used which is probably closer to Quick Basic

Have a great day


If students are taking the Computer Science A course, or intend to take it, then it would be advisable to learn Java. Alternatives include JavaScript that is used on the Khan Academy website for the AP CSP course.


In programming we can repeat things, either continuously or for a set amount of times. We can use a for loop to repeat (or iterate) a set amount of times, or use a condition to run a while loop. Be careful as the while loop will run forever unless you either break from the loop or change it so that the condition becomes false.


We can separate the programming that is not in the AP CSP course into three categories: general, language-specific, and advanced. The advanced concepts would not be in year 1 of a computer degree course, or only included on the harder computer science degree courses.


In beginner courses for programming there are other area not covered in the CSP course. Examples include user input, handling files, other data structures, modules and libraries, and possibly more advanced areas such as objects, classes and pointers.


The initial introduction to programming courses at university focus on the primary concepts and use practice exercises and coursework to help students learn the syntax of the chosen programming language, whilst learning programming logic to develop programs.


Each programming language includes the common programming concepts but differs slightly. For example, in python the user input is always a string, even if the user enters a number. This means the data type is important although this is not fully discussed in the CSP course by some providers.


Another example would be the use of nested if statements in the CSP course which is allowed in programming but there are often better alternatives. In python there are if-elif-else statements and there are similar statements in the other languages. In C++ and Java case statements are often used when there are multiple options in a menu for example.


The Computer Science Principles AP course covers most of the beginner material for learning programming and is therefore useful to take before learning at university or just learning about programming.

3a8082e126
Reply all
Reply to author
Forward
0 new messages