
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Print a String Two Times with a Single Statement in Python
When used with strings, asterisk (*) is defined as repetition operator. It concatenates given string as many times as number followed by asterisk.
>>> string = 'abcdefghij' >>> print (string*2) abcdefghijabcdefghij
Advertisements