IGCSE Computer Science 2023-25 ​​- Topic 8: Programming (2b) - Basic Concepts - Strings & Operators

preview_player
Показать описание
This is the third video for Topic 8...Here you will be shown how to declare and use variables and constants in your code. Understand and use of the Basic Concepts including String Handling and Arithmetic, Logical and Boolean Operators.

#Computer Science #IGCSE #Exams #Cambridge #programming #coding

VIDEO to support Computer Science Syllabus
Cambridge IGCSE™ (9–1 0984) (A*-C 0478)
For exams in 2023, 2024 and 2025.

Cambridge IGCSE Computer Science helps learners develop an interest in computational thinking and an understanding of the principles of problem-solving using computers. They apply this understanding to create computer-based solutions to problems using algorithms and a high-level programming language. Learners also develop a range of technical skills, and the ability to effectively test and evaluate computing solutions.

Studying Cambridge IGCSE Computer Science helps learners appreciate current and emerging computing technologies, the benefits of their use and recognise their potential risks. It provides an ideal foundation for progression to Cambridge International AS & A Level and is valuable for other areas of study and everyday life.

THE CODE:
# testing len()
str1 = "Studying Computer Science"
print("The length of the string is:", len(str1))

str2 = "Computer Science"
print(str2[:8])
print(str2[9:16])

# testing substrings
str3 = "Studying Computer Science in important for the FUTURE"

--- Performing Calculations ------

# Get input from the user
Number1 = int(input("Enter Number1: "))
Number2 = int(input("Enter Number2: "))

# Perform the calculations
addition = Number1 + Number2
subtraction = Number1 - Number2
multiplication = Number1 * Number2
division = Number1 / Number2
exponentiation = Number1 ** Number2

# Print the results
print("Number1 + Number2 =", addition)
print("Number1 - Number2 =", subtraction)
print("Number1 * Number2 =", multiplication)
print("Number1 / Number2 =", division)
print("Number1 ^ Number2 =", exponentiation)

# Get input from the user
Number3 = int(input("Enter Number3: "))

# Perform the calculations
result1 = Number3 * (Number1 + Number2)
result2 = Number3 * (Number1 - Number2)
result3 = (Number1 + Number2) ** Number3

# Print the results
print("Number3 * (Number1 + Number2) =", result1)
print("Number3 * (Number1 - Number2) =", result2)
print("(Number1 + Number2) ^ Number3 =", result3)

Рекомендации по теме
Комментарии
Автор

Thanks for everything you've posted till now!! My pre-board is tomorrow so I wont be able to learn this chapter form you but I am very confident for tomorrow's test thanks to you!!

aravgupta
Автор

is learning a high-level language like python necessary/mandatory for paper 2? or is pseudocode only needed?

qxltr
Автор

is there a way i could get the notes for everything please?

haiii
Автор

2:08 why use [ ] brackets instead of () what's the difference?

yareyare
visit shbcf.ru