Soru 24: A permutation is an ordered arrangement of objects. For example, 3124 is one possible permutation of the digits 1, 2, 3 and 4.…
Yazılım, Yapay Zeka, IOT, Mekatronik
Soru 24: A permutation is an ordered arrangement of objects. For example, 3124 is one possible permutation of the digits 1, 2, 3 and 4.…
Soru 22: Using names.txt (right click and ‘Save Link/Target As…’), a 46K text file containing over five-thousand first names, begin by sorting it into alphabetical order. Then…
Soru 23:https://projecteuler.net/problem=23 A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the…
Soru 21: Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). If d(a) = b and d(b) = a, where a ≠ b, then a and b are…
Soru: The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? ————————– 13195…
Soru: https://projecteuler.net/problem=2 Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first…
Python dilinde basit bir sınıf tanımlama ve kullanımı örneği: class Daire: pi=3 def __init__(self, yarıçap): self.yarıçap = yarıçap def Alan(self): print(“Alan =”, (self.pi*self.yarıçap*self.yarıçap)) while True:…
Sorunun orjinali: The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3…
Python programlama dilinde dizilerin yani listelerin kullanım örneği liste = [“a”,”b”,”c”] print(“Liste =”, liste) liste.append(“d”) print(“Liste =”, liste) liste.pop(2) print(“Liste =”, liste) liste.insert(2,”c”) print(“Liste =”,…
Sorunun orjinali: By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.…