Kayıt Ol

Python Sahte Alıntı Oluşturucu Yapımı


Döküman #1
Belirlenen metni noktalardan parçalayıp içinden verilen sayı kadar rastgele cümle alıp ekrana yazıyor.

Kullanılan modüller: random

import random

# source:
sentences = "Python is a widely used general-purpose, high-level programming language. Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than would be possible in languages such as C++ or Java. The language provides constructs intended to enable clear programs on both a small and large scale. Python supports multiple programming paradigms, including object-oriented, imperative and functional programming or procedural styles. It features a dynamic type system and automatic memory management and has a large and comprehensive standard library. Python interpreters are available for installation on many operating systems, allowing Python code execution on a wide variety of systems. Using third-party tools, such as Py2exe or Pyinstaller,[24] Python code can be packaged into stand-alone executable programs for some of the most popular operating systems, allowing for the distribution of Python-based software for use on those environments without requiring the installation of a Python interpreter. CPython, the reference implementation of Python, is free and open-source software and has a community-based development model, as do nearly all of its alternative implementations. CPython is managed by the non-profit Python Software Foundation.".split(".")

print(("-" * 30) + "\nPseudo Quote Generator\n" + ("-" * 30))

n = int(raw_input("Number of sentences: "))

quote = []

for i in range(n):

print("Your pseudo quote: {}.".format(".".join(quote)))


Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

Konu ile Alakalı Benzer Konular
Konular Yazar Yorumlar Okunma Son Yorum
Döküman Python İle Neler Yapılabilir? şenol 2 20 06-10-2021 Saat 21:38 Son Yorum: uzman
Döküman Python Kurulumu Nasıl Yapılır? şenol 1 88 18-08-2021 Saat 23:42 Son Yorum: uzman
Döküman Profesyonel Bir Python Geliştiricisinin Neleri Bilmesi Gerekir? Mango 0 86 17-04-2021 Saat 14:26 Son Yorum: Mango
Döküman Python Şifre Girişi Sorgulatma Mango 0 65 14-04-2021 Saat 18:37 Son Yorum: Mango
Döküman Python Metni Geriye çevirme Mango 0 66 14-04-2021 Saat 18:35 Son Yorum: Mango
Döküman Python Asal Sayı Oluşturucu Mango 0 75 14-04-2021 Saat 18:34 Son Yorum: Mango

Google Reklamları